code: def ReadFile(self, filename):
      
      with io.open(filename, 'r', encoding='utf-8') as file_object:
        for artifact_definition in self.ReadFileObject(file_object):
          yield artifact_definition
docs: Reads artifact definitions from a file.
  
      Args:
        filename (str): name of the file to read from.
  
      Yields:
        ArtifactDefinition: an artifact definition.