code: def ms_batchify_fn(data):
      """Multi-size batchify function"""
      if isinstance(data[0], (str, mx.nd.NDArray)):
          return list(data)
      elif isinstance(data[0], tuple):
          data = zip(*data)
          return [ms_batchify_fn(i) for i in data]
      raise RuntimeError("unknown datatype")
  
file_path: gluon-cv/gluoncv/data/segbase.py
imports: import random
  import numpy
  from PIL import Image, ImageOps, ImageFilter
  import mxnet
  from mxnet import cpu
  import mxnet.ndarray
  from .base import VisionDataset
label_desc: Use image node_id 1 for calling a global function with example usage: ms_batchify_fn(data) and returns: list, unknown