code: def test_rpc_graph():
      server = rpc.Server(key="profiling")
      remote = rpc.connect("127.0.0.1", server.port, key="profiling")
  
      mod, params = mlp.get_workload(1)
      exe = relay.build(mod, "llvm", params=params)
      temp = utils.tempdir()
      path = temp.relpath("lib.tar")
      exe.export_library(path)
      remote.upload(path)
      rexec = remote.load_module("lib.tar")
  
      gr = debug_executor.create(
          exe.get_graph_json(), rexec, remote.cpu()
      )
  
      data = np.random.rand(1, 1, 28, 28).astype("float32")
      report = gr.profile(data=data)
      assert len(report.calls) > 0
  
imports: import numpy
  import pytest
  from io import StringIO
  import csv
  import os
  import json
  import platform
  import tvm.testing
  import tvm.utils
  from tvm.runtime import profiler_vm
  from tvm import relay
  from tvm.relay.testing import mlp
  from tvm.contrib.debugger import debug_executor
  from tvm import rpc
  from tvm.contrib import utils
  from tvm.runtime.profiling import Report
  from tvm.script import tir
label_desc: Use image node_id 7 for calling a global function with example usage: test_rpc_graph() without return types