human
Complete this python program:
def legacy_gte_function_builder(name, versions):
assistant
#Here is the Python program you requested.

    """Build and return a version comparison function.
    Ex: name = \oo_version_gte_3_1_or_1_1\
    versions = {\enterprise\: \3.1\, \origin\: \1.1\}
    returns oo_version_gte_3_1_or_1_1, a function which based on the
    version and deployment type will return true if the provided
    version is greater than or equal to the function\s version
    """
    enterprise_version = versions['enterprise']
    origin_version = versions['origin']
    def _gte_function(version, deployment_type):
        "\n                                Dynamic    function    created    by    gte_function_builder.\n\n                                Ex:    version    =    '3.1'\n                                                deployment_type    =    'openshift-enterprise'\n                                                returns    True/False\n                                "
        version_gte = False
        if ('enterprise' in deployment_type):
            if (str(version) >= LooseVersion(enterprise_version)):
                version_gte = True
        elif ('origin' in deployment_type):
            if (str(version) >= LooseVersion(origin_version)):
                version_gte = True
        return version_gte
    _gte_function.__name__ = name
    return _gte_function