code: def convert_2d_to_3d_generator(data_dict):
      shp = data_dict["orig_shape_data"]
      current_shape = data_dict["data"].shape
      data_dict["data"] = data_dict["data"].reshape(
          (shp[0], shp[1], shp[2], current_shape[-2], current_shape[-1])
      )
      shp = data_dict["orig_shape_seg"]
      current_shape_seg = data_dict["seg"].shape
      data_dict["seg"] = data_dict["seg"].reshape(
          (
              shp[0],
              shp[1],
              shp[2],
              current_shape_seg[-2],
              current_shape_seg[-1],
          )
      )
      return data_dict
  
imports: import random
  import numpy
  import paddle
  from paddle.nn.functional import avg_pool2d, avg_pool3d
  from typing import List, Tuple, Union, Callable
  from copy import deepcopy
  from scipy.ndimage import map_coordinates, fourier_gaussian
  from scipy.ndimage.filters import gaussian_filter, gaussian_gradient_magnitude
  from scipy.ndimage.morphology import grey_dilation
  from skimage.transform import resize
  from scipy.ndimage.measurements import label
label_desc: Use image node_id 15 for calling a global function with example usage: convert_2d_to_3d_generator(data_dict) and returns: data_dict