code: def resize(self, new_data_size):
          
  
          resize_bytes(
              self.__fileobj, self.data_size, new_data_size, self.data_offset)
          self._update_size(new_data_size)
docs: Resize the file and update the chunk sizes