def determine_module(func):
    """
    Given a function, returns the Python dotted path of the module it comes
    from.

    Ex::

        from random import choice
        determine_module(choice) # Returns 'random'

    Args:
        func (callable): The callable

    Returns:
        str: Dotted path string
    """
    return func.__module__