from typing import Any
import importlib


def load_class(path_to_module: str, class_name: str) -> Any:
    """Load a specific class using simply the path of the module and the class name.
    This function use importlib to simplify the loading of a class.

    Args:
        path_to_module (str): the python path to the module
        class_name (str): the name of the class you want to load

    Returns:
        (Any): the class loaded
    """
    module = importlib.import_module(path_to_module)
    return getattr(module, class_name)