code: def test_graph_executor_nested_tuples():
      x, y, z, w = [
          relay.var(c, shape=(2, 3), dtype="float32") for c in "xyzw"
      ]
      out = relay.Tuple([x, relay.Tuple([y, relay.Tuple([z, w])])])
      func = relay.Function([x, y, z, w], out)
  
      f = relay.create_executor(
          kind="graph",
          mod=tvm.IRModule.from_expr(func),
          device=tvm.cpu(0),
          target="llvm",
      ).evaluate()
  
      data = [
          np.random.uniform(size=(2, 3)).astype("float32")
          for _ in "xyzw"
      ]
      out = f(*data)
      assert len(out) == 2
      tvm.testing.assert_allclose(out[0].numpy(), data[0])
      assert len(out[1]) == 2
      tvm.testing.assert_allclose(out[1][0].numpy(), data[1])
      assert len(out[1][1]) == 2
      tvm.testing.assert_allclose(out[1][1][0].numpy(), data[2])
      tvm.testing.assert_allclose(out[1][1][1].numpy(), data[3])
  
imports: import numpy
  import pytest
  from unittest.mock import patch
  import tvm
  import json
  from tvm import relay
  from tvm.contrib import graph_executor
  from tvm.relay.op import add
  import tvm.testing
  from tvm.relay.testing import mlp
  from tvm import rpc
  from tvm.contrib import utils
label_desc: Use image node_id 14 for calling a global function with example usage: test_graph_executor_nested_tuples() without return types