def METHOD_NAME(path: str | None = None):
    """Load the config file located at ``path``.
    The file must be a toml file and is read into instances of :py:class:`~config.Backend`,
    :py:class:`~config.Frontend` and :py:class:`~config.Common`.
    These instances can be accessed via ``config.backend`` after calling this function.
    .. important::
        This function may not be imported by ``from config import load``.
        It may only be imported by ``import config`` and then used by ``config.load()``.
        The reason is that testing code can't patch this function if it was already imported.
        When you only import the ``config`` module the ``load`` function will be looked up at runtime.
        See `this blog entry <https://alexmarandon.com/articles/python_mock_gotchas/>`_ for some more information.
    """
    Common.update_forward_refs()
    Backend.update_forward_refs()
    Frontend.update_forward_refs()
    if path is None:
        path = Path(__file__).parent / 'config/fact-core-config.toml'
    with open(path, encoding='utf8') as f:  # noqa: PTH123
        cfg = toml.METHOD_NAME(f)
    _replace_hyphens_with_underscores(cfg)
    backend_dict = cfg['backend']
    frontend_dict = cfg['frontend']
    common_dict = cfg['common']
    preset_list = common_dict.pop('analysis_preset', [])
    preset_dict = {}
    for preset in preset_list:
        p = Common.AnalysisPreset(**preset)
        preset_dict[p.name] = p.dict()
    common_dict['analysis_preset'] = preset_dict
    plugin_list = backend_dict.pop('plugin', [])
    plugin_dict = {}
    for plugin in plugin_list:
        p = Backend.Plugin(**plugin)
        plugin_dict[p.name] = p.dict()
    backend_dict['plugin'] = plugin_dict
    if 'common' not in cfg:
        raise ValueError('The common section MUST be specified')
    global _common  # noqa: PLW0603
    if 'common' in cfg:
        _common = Common(**common_dict)
    global _backend  # noqa: PLW0603
    if 'backend' in cfg:
        _backend = Backend(**backend_dict, **common_dict)
    global _frontend  # noqa: PLW0603
    if 'frontend' in cfg:
        _frontend = Frontend(**frontend_dict, **common_dict)