code: def get_entry_points_config_dirs(
      group_name: str, include_config_path: bool = True
  ) -> list[str]:
      """Get the config directories for all entry points of given name."""
      dirs: list[str] = []
      for entry_point in cached_entry_point(group_name):
          module = _entry_point_module(entry_point)
          new_dir = str(impr_files(module) / "etc")
          if not dirs or dirs[-1] != new_dir:
              dirs.append(new_dir)
      if include_config_path:
          dirs.extend(config.get("config_path")[::-1])
      return dirs
  
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 2 for calling a global function with example usage: get_entry_points_config_dirs(group_name, include_config_path) and returns: dirs