code: def ParseFileObject(self, parser_mediator, file_object):
      
      mft_metadata_file = pyfsntfs.mft_metadata_file()
  
      try:
        mft_metadata_file.open_file_object(file_object)
      except IOError as exception:
        parser_mediator.ProduceExtractionWarning(
            'unable to open file with error: {0!s}'.format(exception))
  
      for entry_index in range(0, mft_metadata_file.number_of_file_entries):
        try:
          mft_entry = mft_metadata_file.get_file_entry(entry_index)
          self._ParseMFTEntry(parser_mediator, mft_entry)
  
        except IOError as exception:
          parser_mediator.ProduceExtractionWarning((
              'unable to parse MFT entry: {0:d} with error: {1!s}').format(
                  entry_index, exception))
  
      mft_metadata_file.close()
docs: Parses a NTFS $MFT metadata file-like object.
  
      Args:
        parser_mediator (ParserMediator): mediates interactions between parsers
            and other components, such as storage and dfvfs.
        file_object (dfvfs.FileIO): file-like object.