code: def determine_selection_of_iterable_values_from_config(config: DictLike, possible_iterables: Mapping[str, Type[enum.Enum]]) -> Dict[str, List[Any]]:
      
      iterables = {}
      requested_iterables = config["iterables"]
      for k, v in requested_iterables.items():
          if k not in possible_iterables:
              raise KeyError(k, f"Cannot find requested iterable in possible_iterables: {possible_iterables}")
          logger.debug(f"k: {k}, v: {v}")
          additional_iterable: List[Any] = []
          enum_values = possible_iterables[k]
          # Check for a string. This is wrong, and the user should be notified.
          if isinstance(v, str):
              raise TypeError(type(v), f"Passed string {v} when must be either bool or list")
          # Allow the possibility to skip
          if v is False:
              continue
          # Allow the possibility to including all possible values in the enum.
          elif v is True:
              additional_iterable = list(enum_values)
          else:
              if enum_values is None:
                  # The enumeration values are none, which means that we want to take
                  # all of the values defined in the config.
                  additional_iterable = list(v)
              else:
                  # Otherwise, only take the requested values.
                  for el in v:
                      additional_iterable.append(enum_values[el])
          # Store for later
          iterables[k] = additional_iterable
  
      return iterables
docs: Determine iterable values to use to create objects for a given configuration.
  
      All values of an iterable can be included be setting the value to ``True`` (Not as a single value list,
      but as the only value.). Alternatively, an iterator can be disabled by setting the value to ``False``.
  
      Args:
          config: The dict-like configuration from ruamel.yaml which should be overridden.
          possible_iterables: Key value pairs of names of enumerations and their values.
      Returns:
          dict: Iterables values that were requested in the config.