code: def plugin_list():
      plugin_dir = cpprefs.get_plugin_directory()
      if plugin_dir is not None and os.path.isdir(plugin_dir):
          file_list = glob.glob(os.path.join(plugin_dir, "*.py"))
          return [
              os.path.basename(f)[:-3]
              for f in file_list
              if not f.endswith("__init__.py")
          ]
      return []
  
file_path: CellProfiler/src/frontend/cellprofiler/modules/plugins/__init__.py
imports: import glob
  import imp
  import os.path
  import sys
  import cellprofiler_core.preferences
label_desc: Use image node_id 1 for calling a global function with example usage: plugin_list() and returns: list, unknown