code: def copy_metadata(self, other):
          
          logging.info("Copying metadata")
          # copy attributes
          for key in self.attrs.keys():
              other.attrs[key] = self.attrs[key]
docs: Copies all metadata from this file to the other file.
  
          Metadata is defined as everything in the top-level ``.attrs``.
  
          Parameters
          ----------
          other : InferenceFile
              An open inference file to write the data to.