code: def _load_config(composite_configs):
      if not isinstance(composite_configs, (list, tuple)):
          composite_configs = [composite_configs]
  
      conf = {}
      for composite_config in composite_configs:
          with open(
              composite_config, "r", encoding="utf-8"
          ) as conf_file:
              conf = recursive_dict_update(
                  conf, yaml.load(conf_file, Loader=UnsafeLoader)
              )
      try:
          sensor_name = conf["sensor_name"]
      except KeyError:
          logger.debug(
              'No "sensor_name" tag found in %s, skipping.',
              composite_configs,
          )
          return {}, {}, {}
  
      sensor_compositors = {}
      sensor_modifiers = {}
  
      dep_id_keys = None
      sensor_deps = sensor_name.split("/")[:-1]
      if sensor_deps:
          # get dependent
          for sensor_dep in sensor_deps:
              (
                  dep_comps,
                  dep_mods,
                  dep_id_keys,
              ) = load_compositor_configs_for_sensor(sensor_dep)
          # the last parent should include all of its parents so only add the last one
          sensor_compositors.update(dep_comps)
          sensor_modifiers.update(dep_mods)
  
      id_keys = _get_sensor_id_keys(conf, dep_id_keys)
      mod_config_helper = _ModifierConfigHelper(
          sensor_modifiers, id_keys
      )
      configured_modifiers = conf.get("modifiers", {})
      mod_config_helper.parse_config(
          configured_modifiers, composite_configs
      )
  
      comp_config_helper = _CompositeConfigHelper(
          sensor_compositors, id_keys
      )
      configured_composites = conf.get("composites", {})
      comp_config_helper.parse_config(
          configured_composites, composite_configs
      )
      return sensor_compositors, sensor_modifiers, id_keys
  
imports: from __future__ import annotations
  import logging
  import os
  import warnings
  from functools import lru_cache, update_wrapper
  from typing import Callable, Iterable
  import yaml
  from yaml import UnsafeLoader
  import satpy
  from satpy import DataID, DataQuery
  from satpy._config import config_search_paths, get_entry_points_config_dirs, glob_config
  from satpy.dataset.dataid import minimal_default_keys_config
  from satpy.utils import recursive_dict_update
label_desc: Use image node_id 2 for calling a global function with example usage: _load_config(composite_configs) and returns: sensor_compositors,  sensor_modifiers,  id_keys, dict,  dict,  dict