code: def _get_loadables_for_reader_config(
      base_dir, reader, sensor, reader_configs, reader_kwargs, fs
  ):
      """Get loadables for reader configs.
  
      Helper for find_files_and_readers.
  
      Args:
          base_dir: as for `find_files_and_readers`
          reader: as for `find_files_and_readers`
          sensor: as for `find_files_and_readers`
          reader_configs: reader metadata such as returned by
              `configs_for_reader`.
          reader_kwargs: Keyword arguments to be passed to reader.
          fs (FileSystem): as for `find_files_and_readers`
      """
      sensor_supported = False
      try:
          reader_instance = load_reader(reader_configs, **reader_kwargs)
      except (KeyError, IOError, yaml.YAMLError) as err:
          LOG.info("Cannot use %s", str(reader_configs))
          LOG.debug(str(err))
          if reader and (isinstance(reader, str) or len(reader) == 1):
              # if it is a single reader then give a more usable error
              raise
          return (None, [], False)
  
      if not reader_instance.supports_sensor(sensor):
          return (reader_instance, [], False)
      if sensor is not None:
          # sensor was specified and a reader supports it
          sensor_supported = True
      loadables = reader_instance.select_files_from_directory(
          base_dir, fs
      )
      if loadables:
          loadables = list(
              reader_instance.filter_selected_filenames(loadables)
          )
      return (reader_instance, loadables, sensor_supported)
  
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 13 for calling a global function with example usage: _get_loadables_for_reader_config(base_dir, reader, sensor, reader_configs, reader_kwargs, fs) and returns: reader_instance,  loadables,  sensor_supported, reader_instance,  list,  False, None,  list,  False