code: def skip_if_no_onnxruntime(fn):
      @wraps(fn)
      def wrapper(*args, **kwargs):
          if not has_onnxruntime():
              raise unittest.SkipTest("onnxruntime not installed")
          fn(*args, **kwargs)
  
      return wrapper
  
imports: import unittest
  from functools import wraps
  from os import getenv
  import numpy
  from numpy.testing import assert_allclose
  from parameterized import parameterized
  from onnx import ONNX_ML, TensorProto, TypeProto, ValueInfoProto
  from onnx.checker import check_model
  from onnx.defs import onnx_opset_version
  from onnx.helper import make_graph, make_model_gen_version, make_node, make_opsetid, make_tensor, make_tensor_value_info
  from onnx.reference import ReferenceEvaluator
label_desc: Use image node_id 2 for calling a global function with example usage: skip_if_no_onnxruntime(fn) and returns: wrapper