code: def vmobj_to_list(o):
      """Converts TVM objects returned by VM execution to Python List.
  
      Parameters
      ----------
      o : Obj
          VM Object as output from VM runtime executor.
  
      Returns
      -------
      result : list
          Numpy objects as list with equivalent values to the input object.
  
      """
  
      if isinstance(o, tvm.nd.NDArray):
          result = [o.numpy()]
      elif isinstance(o, tvm.runtime.container.ADT):
          result = []
          for f in o:
              result.extend(vmobj_to_list(f))
      elif isinstance(
          o, tvm.relay.backend.interpreter.ConstructorValue
      ):
          if o.constructor.name_hint == "Cons":
              tl = vmobj_to_list(o.fields[1])
              hd = vmobj_to_list(o.fields[0])
              hd.extend(tl)
              result = hd
          elif o.constructor.name_hint == "Nil":
              result = []
          elif "tensor_nil" in o.constructor.name_hint:
              result = [0]
          elif "tensor" in o.constructor.name_hint:
              result = [o.fields[0].numpy()]
          else:
              raise RuntimeError(
                  f"Unknown object type: {o.constructor.name_hint}"
              )
      else:
          raise RuntimeError(f"Unknown object type: {type(o)}")
      return result
  
imports: import re
  import os.path
  import collections
  import numpy
  import tensorflow
  from tensorflow.core.framework import graph_pb2
  import tvm
  from tvm.contrib.download import download_testdata
label_desc: Use image node_id 3 for calling a global function with example usage: vmobj_to_list(o) and returns: result