import importlib


def _get_model_from_str(x):
    """
    Loads a model from a string
    Parameters
    --------------
    x : str, must exist in yarlp.models
    """
    m = importlib.import_module("yarlp.model")
    return getattr(m, x)