def gluonts_inference(root_dir, monkeypatch, helpers):
    """Import inference script as a module.

    See https://github.com/verdimrc/python-project-skeleton/tree/master/test for
    the reason behind importing this way (as opposed import statement.
    """
    monkeypatch.syspath_prepend(root_dir / "src")
    inference = helpers.import_from_file("gluonts_inference", root_dir / "src" / "inference.py")
    return inference