code: def crop_to_bbox(image, bbox):
      assert (
          len(image.shape) == 3
      ), "Function 'crop_to_bbox' only supports 3d images, but got image shape: {}.".format(
          image.shape
      )
      resizer = (
          slice(bbox[0][0], bbox[0][1]),
          slice(bbox[1][0], bbox[1][1]),
          slice(bbox[2][0], bbox[2][1]),
      )
      return image[resizer]
  
imports: import os
  import json
  import shutil
  import pickle
  import numpy
  import SimpleITK
  from scipy.ndimage import binary_fill_holes
  from multiprocessing import Pool
  from collections import OrderedDict
  from .path_utils import join_paths
label_desc: Use image node_id 5 for calling a global function with example usage: crop_to_bbox(image, bbox) and returns: image