code: def get_configs_path() -> str:
      """
      Get the `configs` directory.
      For a working copy, this is the one in the root of the repository,
      but for an installed copy, it's in the `sgm` package (see pyproject.toml).
      """
      this_dir = os.path.dirname(__file__)
      candidates = (
          os.path.join(this_dir, "configs"),
          os.path.join(this_dir, "..", "configs"),
      )
      for candidate in candidates:
          candidate = os.path.abspath(candidate)
          if os.path.isdir(candidate):
              return candidate
      raise FileNotFoundError(
          f"Could not find SGM configs in {candidates}"
      )
  
imports: import functools
  import importlib
  import os
  from functools import partial
  from inspect import isfunction
  import fsspec
  import numpy
  import torch
  from PIL import Image, ImageDraw, ImageFont
  from safetensors.torch import load_file
label_desc: Use image node_id 23 for calling a global function with example usage: get_configs_path() and returns: candidate