docs: def read_collection_from_yaml(desired_type: Type[Any], file_object: TextIOBase, logger: Logger,
                                conversion_finder: ConversionFinder, fix_imports: bool = True, errors: str = 'strict',
                                **kwargs) -> Any:
      """
      Parses a collection from a yaml file.
  
      :param desired_type:
      :param file_object:
      :param logger:
      :param fix_imports:
      :param errors:
      :param args:
      :param kwargs:
      :return:
      """
      res = yaml.load(file_object)
  
      # convert if required
      return ConversionFinder.convert_collection_values_according_to_pep(res, desired_type, conversion_finder, logger,
                                                                         **kwargs)