def load_class(location: str) -> type:
module_name, _, class_name = location.rpartition("<STR_LIT:.>")<EOL>if not module_name:<EOL><INDENT>raise ArcaMisconfigured(f"<STR_LIT>")<EOL><DEDENT>try:<EOL><INDENT>imported_module = importlib.import_module(module_name)<EOL>return getattr(imported_module, class_name)<EOL><DEDENT>except ModuleNotFoundError:<EOL><INDENT>raise ArcaMisconfigured(f"<STR_LIT>")<EOL><DEDENT>except AttributeError:<EOL><INDENT>raise ArcaMisconfigured(f"<STR_LIT>")<EOL><DEDENT>
Loads a class from a string and returns it.

    >>> from arca.utils import load_class
    >>> load_class("arca.backend.BaseBackend")
    <class 'arca.backend.base.BaseBackend'>

    :raise ArcaMisconfigured: If the class can't be loaded.