docstr: Resize the data to the input size
docstr_tok: ["Resize","the","data","to","the","input","size"]
code: def __resize_data__(self, data):
      """
      Resize the data to the input size
      """
      [depth, height, width] = data.shape
      scale = [
          self.input_D * 1.0 / depth,
          self.input_H * 1.0 / height,
          self.input_W * 1.0 / width,
      ]
      data = ndimage.interpolation.zoom(data, scale, order=0)
  
      return data
  
file_path: MedicalNet/datasets/brains18.py
imports: import math
  import os
  import random
  import numpy
  from torch.utils.data import Dataset
  import nibabel
  from scipy import ndimage
label_desc: Use image node_id 8 for calling the BrainS18Dataset obj's underlying member method code with example usage: obj.__resize_data__(data) and returns: data