import pkgutil


def is_installed(package):
    """Check if a python package (Kipoi plugin) is installed

    Args:
      package (str): package/plugin name

    Returns:
      True if package/plugin is installed
    """
    return pkgutil.find_loader(package) is not None