code: def Read(self, file_object):
      
      config_parser = configparser.RawConfigParser()
      # pylint: disable=deprecated-method
      # TODO: replace readfp by read_file, check if Python 2 compatible
      config_parser.readfp(file_object)
  
      for section_name in config_parser.sections():
        dependency_definition = DependencyDefinition(section_name)
        for value_name in self._VALUE_NAMES:
          value = self._GetConfigValue(config_parser, section_name, value_name)
          setattr(dependency_definition, value_name, value)
  
        yield dependency_definition
docs: Reads dependency definitions.
  
      Args:
        file_object (file): file-like object to read from.
  
      Yields:
        DependencyDefinition: dependency definition.