code: def jupyter_config_path():
      """Return the search path for Jupyter config files as a list."""
      paths = [jupyter_config_dir()]
      if os.environ.get("JUPYTER_NO_CONFIG"):
          return paths
  
      # highest priority is env
      if os.environ.get("JUPYTER_CONFIG_PATH"):
          paths.extend(
              p.rstrip(os.sep)
              for p in os.environ["JUPYTER_CONFIG_PATH"].split(
                  os.pathsep
              )
          )
  
      # then sys.prefix
      for p in ENV_CONFIG_PATH:
          if p not in SYSTEM_CONFIG_PATH:
              paths.append(p)
      paths.extend(SYSTEM_CONFIG_PATH)
      return paths
  
imports: import os
  import sys
  import stat
  import errno
  import tempfile
  import warnings
  from ipython_genutils import py3compat
  from contextlib import contextmanager
  from distutils.util import strtobool
  from ipython_genutils import py3compat
label_desc: Use image node_id 7 for calling a global function with example usage: jupyter_config_path() and returns: paths, paths