code: def _lookup_sid(graph, name):
      """Lookup the storage id of a named parameter.
  
      Arguments
      ---------
      graph : dict
          Parsed JSON graph.
  
      name : str
          Name of the tensor parameter to lookup.
  
      Returns
      -------
      int :
          The storage_id of the parameter.
      """
      num_outputs_seen = 0
      for i, n in enumerate(graph["nodes"]):
          if n["name"] == name:
              print(
                  "sid",
                  name,
                  graph["attrs"]["storage_id"][1],
                  num_outputs_seen,
              )
              return graph["attrs"]["storage_id"][1][num_outputs_seen]
          else:
              if "attrs" in n and "num_outputs" in n["attrs"]:
                  num_outputs_seen += int(n["attrs"]["num_outputs"])
              else:
                  num_outputs_seen += 1
  
      raise KeyError(f"no such param: {name}")
  
imports: import collections
  import ctypes
  import json
  import os
  import re
  from contextlib import redirect_stderr
  from io import StringIO
  import numpy
  import tvm
  import tvm.relay
  import tvm.testing
  from tvm import meta_schedule
  from tvm import relay
  from tvm.contrib import utils
  from tvm.relay.backend import Executor, Runtime
label_desc: Use image node_id 3 for calling a global function with example usage: _lookup_sid(graph, name) and returns: graph