def METHOD_NAME(search_path: str, msg_class: type) -> str:
    try:
        path = os.path.normpath(inspect.getfile(msg_class))
        path = search_path + path.rsplit(search_path, 1)[1]
        version = (re.search(r"v(\d+\_)?(\*|\d+)", path)).group()
        path = path.split(version, 1)[0]
        definition_path = (path.replace("/", ".")) + "definition"
        if ClassLoader.load_module(definition_path):
            return definition_path
    except Exception:
        # we expect some exceptions resolving paths
        pass