def contribute_to_module(module, name, func):
    name = force_encode(name)
    func = recreate_function(func, module=module)
    setattr(module, name, func)
    return func
Contribute a function to a module.
dataset/ETHPy150Open pytest-dev/pytest-bdd/pytest_bdd/steps.py/contribute_to_module