code: def get_config_path_safe():
      """Get 'config_path' and check for proper 'list' type."""
      config_path = config.get("config_path")
      if not isinstance(config_path, list):
          raise ValueError(
              "Satpy config option 'config_path' must be a "
              "list, not '{}'".format(type(config_path))
          )
      return config_path
  
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 1 for calling a global function with example usage: get_config_path_safe() and returns: config_path