code: def ReadFromFile(self, artifacts_reader, filename):
      
      for artifact_definition in artifacts_reader.ReadFile(filename):
        self.RegisterDefinition(artifact_definition)
docs: Reads artifact definitions into the registry from a file.
  
      Args:
        artifacts_reader (ArtifactsReader): an artifacts reader.
        filename (str): name of the file to read from.