import importlib


def _load_user_defined_function(function_name: str, module_name: str):
    """Function to load arbitrary functions
    Args:
        function_name (str): name of function to load from function_file
        module_name (str): file module where function is defined
    Returns:
        function loaded from file
    """

    return getattr(importlib.import_module(module_name), function_name)