code: def write_to_storage(self):
      # if self.base_case.shape != self.data_storage.shape:
      #     print(self.base_case.shape, self.data_storage.shape)
      #     print("""Attempting to write data to HDF5 with incorrect shape. Are you attempting to save different size data inputs to HDF5? DeepNeuro currently only saves equal size inputs/""")
      #     raise ValueError
  
      if len(self.augmentation_cases) == 1:
          self.data_storage.append(self.base_case)
      else:
          self.data_storage.append(self.augmentation_cases[-1])
  
      self.casename_storage.append(
          np.array(bytes(self.base_casename, "utf-8"))[np.newaxis][
              np.newaxis
          ]
      )
  
      if self.base_affine is not None:
          self.affine_storage.append(self.base_affine[:][np.newaxis])
  
file_path: DeepNeuro/deepneuro/data/data_group.py
imports: import numpy
  from deepneuro.utilities.conversion import read_image_files
label_desc: Use image node_id 6 for calling the DataGroup obj's underlying member method code with example usage: obj.write_to_storage() without return types