from typing import Dict


def get_models(model_args: Dict) -> Dict:
    """
    Retrieve a list of models based on names and init kwargs
    :param model_args:  dict of {
        <model_class_name>:  <kwargs dict>
    }
    :return: map of initialized model indexed by its class name
    """
    model_map = {}
    for name, kwargs in model_args.items():
        model_class = globals()[name]
        model = model_class(**kwargs)
        model_map[name] = model

    return model_map