docs: def copy_to(self, sitkimage):
          """
          Copy all stored meta information info to an sitk Image.
  
          Note that only the spacing and the offset/origin information
          are guaranteed to be preserved, although the method also
          tries to copy other meta information such as DICOM tags.
  
          Parameters
          ----------
          sitkimage : sitk.Image
              the sitk Image object to which to copy the information
  
          Returns
          -------
          sitkimage : sitk.Image
              the passed sitk Image object
          """
          if self.sitkimage is not None:
              for k in self.sitkimage.GetMetaDataKeys():
                  sitkimage.SetMetaData(k, self.sitkimage.GetMetaData(k))
  
          ndim = len(sitkimage.GetSize())
          spacing, offset, direction = self.get_info_consistent(ndim)
              
          sitkimage.SetSpacing(spacing)
          sitkimage.SetOrigin(offset)
          sitkimage.SetDirection(tuple(direction.flatten()))
          
          return sitkimage