code: def get_config_path(filename):
      """Get the path to the highest priority version of a config file."""
      paths = config_search_paths(filename)
      for path in paths[::-1]:
          if os.path.exists(path):
              return path
      raise FileNotFoundError(
          "Could not find file in configuration path: "
          "'{}'".format(filename)
      )
  
imports: from __future__ import annotations
  import ast
  import glob
  import logging
  import os
  import sys
  import tempfile
  from collections import OrderedDict
  from importlib.metadata import EntryPoint, entry_points
  from importlib.resources import files
  from typing import Iterable
  import appdirs
  from donfig import Config
  from satpy._compat import cache
label_desc: Use image node_id 7 for calling a global function with example usage: get_config_path(filename) and returns: path