code: def create(graph_json_str, libmod, device):
      """Create a runtime executor module given a graph and module.
  
      Parameters
      ----------
      graph_json_str : str
          The graph to be deployed in json format output by json graph.
          The graph can contain operator(tvm_op) that points to the name
          of PackedFunc in the libmod.
  
      libmod : tvm.runtime.Module
          The module of the corresponding function
  
      device : Device or list of Device
          The device to deploy the module. It can be local or remote when there
          is only one Device. Otherwise, the first device in the list will
          be used as this purpose. All device should be given for heterogeneous
          execution.
  
      Returns
      -------
      graph_module : GraphModule
          Runtime graph module that can be used to execute the graph.
  
      Note
      ----
      See also :py:class:`tvm.contrib.graph_executor.GraphModule`
      for examples to directly construct a GraphModule from an exported
      relay compiled library.
      """
      assert isinstance(graph_json_str, string_types)
  
      dev, num_rpc_dev, device_type_id = get_device(libmod, device)
  
      if num_rpc_dev == len(dev):
          fcreate = dev[0]._rpc_sess.get_function(
              "tvm.graph_executor.create"
          )
      else:
          fcreate = tvm._ffi.get_global_func(
              "tvm.graph_executor.create"
          )
  
      return GraphModule(
          fcreate(graph_json_str, libmod, *device_type_id)
      )
  
imports: import numpy
  import tvm._ffi
  from tvm.rpc import _ffi_api
  from tvm.rpc import base
  from tvm._ffi.base import string_types
  from tvm._ffi.runtime_ctypes import Device
label_desc: Use image node_id 1 for calling a global function with example usage: create(graph_json_str, libmod, device) and returns: GraphModule