import imp
from pathlib import Path


def get_model(mod_fn, classes):
    "Get model on dynamic."
    model_path = Path(mod_fn)
    return imp.load_source(model_path.stem, str(model_path)).model(classes)

ddd01e8b1f269b9025b8504d7ddf28b4c1b36182
<mask token>

<mask token>


def get_model(mod_fn, classes):
    """Get model on dynamic."""
    model_path = Path(mod_fn)
    return imp.load_source(model_path.stem, str(model_path)).model(classes)

import imp
from pathlib import Path


def get_model(mod_fn, classes):
    """Get model on dynamic."""
    model_path = Path(mod_fn)
    return imp.load_source(model_path.stem, str(model_path)).model(classes)

import imp
from pathlib import Path


def get_model(mod_fn, classes):
    "Get model on dynamic."
    model_path = Path(mod_fn)
    return imp.load_source(model_path.stem, str(model_path)).model(classes)
