code: def dict_batchify_fn(data):
      """dict batchify function"""
      import mxnet.numpy as _mx_np
      from mxnet.util import is_np_array
  
      if isinstance(data[0], mx.nd.NDArray):
          return (
              _mx_np.stack(data)
              if is_np_array()
              else mx.nd.stack(*data)
          )
      elif isinstance(data[0], dict):
          elem = data[0]
          return {
              key: dict_batchify_fn([d[key] for d in data])
              for key in elem
          }
  
      raise RuntimeError("unknown datatype")
  
file_path: gluon-cv/gluoncv/data/kitti/kitti_utils.py
imports: from __future__ import absolute_import, division, print_function
  import os
  from collections import Counter
  import numpy
  import mxnet
label_desc: Use image node_id 5 for calling a global function with example usage: dict_batchify_fn(data) and returns: unknown, unknown