code: def list_plugins(ns_pkg=None):
      from pelican.log import init as init_logging
  
      init_logging(logging.INFO)
      ns_plugins = get_namespace_plugins(ns_pkg)
      if ns_plugins:
          logger.info("Plugins found:\n" + "\n".join(ns_plugins))
      else:
          logger.info("No plugins are installed")
  
file_path: pelican/pelican/plugins/_utils.py
imports: import importlib
  import importlib.machinery
  import importlib.util
  import inspect
  import logging
  import pkgutil
  import sys
label_desc: Use image node_id 3 for calling a global function with example usage: list_plugins(ns_pkg) without return types