

def contribute_to_module(module, name, func):
    'Contribute a function to a module.\n\n    :param module: Module to contribute to.\n    :param name: Attribute name.\n    :param func: Function object.\n\n    :return: New function copy contributed to the module\n    '
    name = force_encode(name)
    func = recreate_function(func, module=module)
    setattr(name, name, func)
    return func

dataset/ETHPy150Open pytest-dev/pytest-bdd/pytest_bdd/steps.py contribute_to_module/VarMisuse@36/125 `module`->`name`