def plugin_load(name, builtin_module):
    try:  # First try importing as a third-party module
        func = _load_function(name)
    except __HOLE__:
        # ValueError raised if we got a string without '.',
        # which implies a builtin function,
        # so we attempt to load from the given module
        func_string = builtin_module + '.' + name
        func = _load_function(func_string)
    return func
dataset/ETHPy150Open calliope-project/calliope/calliope/core.py/plugin_load