code: def _get_paths():
      """Get locations to search for YAML configuration files.
  
      This logic exists as a separate function for testing purposes.
      """
  
      paths = [
          os.getenv("DASK_ROOT_CONFIG", "/etc/dask"),
          os.path.join(sys.prefix, "etc", "dask"),
          *[
              os.path.join(prefix, "etc", "dask")
              for prefix in site.PREFIXES
          ],
          os.path.join(os.path.expanduser("~"), ".config", "dask"),
      ]
      if "DASK_CONFIG" in os.environ:
          paths.append(os.environ["DASK_CONFIG"])
  
      # Remove duplicate paths while preserving ordering
      paths = list(reversed(list(dict.fromkeys(reversed(paths)))))
  
      return paths
  
imports: from __future__ import annotations
  import ast
  import base64
  import builtins
  import json
  import os
  import site
  import sys
  import threading
  import warnings
  from collections.abc import Mapping, Sequence
  from typing import Any, Literal
  import yaml
  from dask.typing import no_default
label_desc: Use image node_id 1 for calling a global function with example usage: _get_paths() and returns: paths