code: def get_valid_reader_names(reader):
      """Check for old reader names or readers pending deprecation."""
      new_readers = []
      for reader_name in reader:
          if reader_name in OLD_READER_NAMES:
              raise ValueError(
                  "Reader name '{}' has been deprecated, "
                  "use '{}' instead.".format(
                      reader_name, OLD_READER_NAMES[reader_name]
                  )
              )
  
          if reader_name in PENDING_OLD_READER_NAMES:
              new_name = PENDING_OLD_READER_NAMES[reader_name]
              warnings.warn(
                  "Reader name '{}' is being deprecated and will be removed soon."
                  "Please use '{}' instead.".format(
                      reader_name, new_name
                  ),
                  FutureWarning,
                  stacklevel=2,
              )
              new_readers.append(new_name)
          else:
              new_readers.append(reader_name)
  
      return new_readers
  
imports: from __future__ import annotations
  import logging
  import os
  import pathlib
  import pickle
  import warnings
  from datetime import datetime, timedelta
  from functools import total_ordering
  import yaml
  from yaml import UnsafeLoader
  from satpy._config import config_search_paths, get_entry_points_config_dirs, glob_config
  from .yaml_reader import AbstractYAMLReader
  from .yaml_reader import load_yaml_configs
label_desc: Use image node_id 10 for calling a global function with example usage: get_valid_reader_names(reader) and returns: new_readers