code: def load_plugins(modules_only=False):
      # Find and import plugins
      plugin_directory = get_plugin_directory()
      if plugin_directory is not None:
          old_path = sys.path
          sys.path.insert(0, plugin_directory)
          try:
              for plugin in plugin_list(plugin_directory):
                  load_plugin(plugin, modules_only=modules_only)
          finally:
              sys.path = old_path
  
imports: import glob
  import importlib
  import importlib.util
  import inspect
  import logging
  import os
  import re
  import sys
  import traceback
  from cellprofiler_core.constants.modules import all_modules
  from cellprofiler_core.constants.modules import pymodules
  from cellprofiler_core.constants.reader import ALL_READERS, BAD_READERS, AVAILABLE_READERS
  from cellprofiler_core.preferences import get_plugin_directory, config_read_typed
  from cellprofiler_core.module import Module
  from cellprofiler_core.reader import Reader
label_desc: Use image node_id 2 for calling a global function with example usage: load_plugins(modules_only) without return types