code: def tuple_map(obj):
      if isinstance(obj, NDArray):
          return (obj,)
      if isinstance(obj, list) and len(obj) > 0:
          return tuple(obj)
      return obj
  
imports: import threading
  from mxnet import autograd
  from mxnet.gluon.utils import split_and_load
  from mxnet.ndarray import NDArray
label_desc: Use image node_id 2 for calling a global function with example usage: tuple_map(obj) and returns: obj, obj, tuple