code: def resized_crop_3d(img, i, j, k, d, h, w, size, interpolation):
      """
      适用于3D数据的resize + crop
      """
      assert _is_numpy_image(img), "img should be numpy image"
      img = crop_3d(img, i, j, k, d, h, w)
      img = resize_3d(img, size, order=interpolation)
      return img
  
imports: from typing import List, Tuple, Union, Callable
  import collections
  import numbers
  import random
  import numpy
  import scipy
  import scipy.ndimage
  import SimpleITK
  from scipy.ndimage.filters import gaussian_filter, gaussian_gradient_magnitude
  from skimage.transform import resize
label_desc: Use image node_id 5 for calling a global function with example usage: resized_crop_3d(img, i, j, k, d, h, w, size, interpolation) and returns: img