def decorate_arguments(self, arguments):
        arguments = list(arguments)
        for i, value in enumerate(arguments):
            is_constraint_file = (i >= 1 and match_option(arguments[i - 1], '-c', '--constraint'))
            is_requirement_file = (i >= 1 and match_option(arguments[i - 1], '-r', '--requirement'))
            if not is_constraint_file and not is_requirement_file and os.path.isfile(value):
                arguments[i] = '%s#md5=%s' % (create_file_url(value), hash_files('md5', value))
        return arguments
Returns a callable that will install the environment in another thread.
dataset/ETHPy150Open paylogic/pip-accel/pip_accel/__init__.py/PipAccelerator.decorate_arguments--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/runtime/request_environment.py/RequestEnvironment.CloneRequestEnvironment