<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def ReadFileObject(self, artifacts_reader, file_object):
 """Reads artifact definitions into the registry from a file-like object. Args: artifacts_reader (ArtifactsReader):
 an artifacts reader. file_object (file):
 file-like object to read from. """

    for artifact_definition in artifacts_reader.ReadFileObject(file_object):
      self.RegisterDefinition(artifact_definition)