code: def run_test(self, g, n, type_assertion_funcs):
      if not isinstance(type_assertion_funcs, list):
          type_assertion_funcs = [type_assertion_funcs]
  
      torch._C._jit_pass_onnx_graph_shape_type_inference(
          g, {}, self.opset_version
      )
      for out, type_assertion_func in zip(
          n.outputs(), type_assertion_funcs
      ):
          type_assertion_func(out.type())
  
imports: import io
  import numpy
  import onnx
  import pytorch_test_common
  import torch
  from pytorch_test_common import skipIfUnsupportedMinOpsetVersion
  from torch.onnx import _constants, utils
  from torch.onnx._globals import GLOBALS
  from torch.onnx._internal import jit_utils
  from torch.testing._internal import common_utils
label_desc: Use image node_id 2 for calling the TestONNXShapeInference obj's underlying member method code with example usage: obj.run_test(g, n, type_assertion_funcs) without return types