human
Complete the below
def RequiresPackage(package_name):

    ''''Skip this test if required package isn\'t present.
    Note this will only work in opensource testing where we actually have
    packages.
    Args:
    package_name: string
    Returns:
    Decorator function'
    '''

=====
Write me a the Python program you requested?
assistant
#Here is the Python program you requested.
    def Decorator(test_function):
        @functools.wraps(test_function)
        def Wrapper(*args, **kwargs):
            try:
                pkg_resources.get_distribution(package_name)
            except pkg_resources.DistributionNotFound:
                raise unittest.SkipTest(('Skipping,    package    %s    not    installed' % package_name))
            return test_function(*args, **kwargs)
        return Wrapper
    return Decorator