def METHOD_NAME(module_path):
    try:
        return get_distribution(module_path).version
    except (DistributionNotFound, AttributeError):
        try:
            module = importlib.import_module(module_path)
            return module.__version__
        except (ImportError, AttributeError):
            try:
                # Try importing the top level module that this plugin is in
                module = importlib.import_module(module_path.split(".")[0])
                return module.__version__
            except (ImportError, AttributeError):
                # This should work for most things, but seems like we are stuck
                # Make one last try by importing Kolibri instead!
                import kolibri
                return kolibri.__version__