def add_to_module(module, name):
    """ Decorator factory.

    Introduce the decorated function into :attr:`module` as :attr:`name`.
    Original function still works under its original name.

    .. code:: python

        # In physicslab_cukrovarnicka_odd15.load module.
        @add_to_module(physicslab.experiment.van_der_pauw, name='load')
        def van_der_pauw(filename):
            pass  # Load data.

    :param module: Any module from :mod:`physicslab.experiment` subpackage
    :type module: module
    :param name: How is the introduced function named
    :type name: str
    :return: Decorator
    :rtype: callable
    """
    def decorator(func):
        """ Return :attr:`func`, so it can also be used as is. """
        setattr(module, name, func)
        return func
    return decorator