code: def check_function(
      function: FunctionProto, ctx: Optional[C.CheckerContext] = None
  ) -> None:
      if ctx is None:
          ctx = C.CheckerContext()
          ctx.ir_version = helper.find_min_ir_version_for(
              list(function.opset_import), True
          )
          function_opset_dic = {}
          for domain_version in function.opset_import:
              function_opset_dic[
                  domain_version.domain
              ] = domain_version.version
          ctx.opset_imports = function_opset_dic
      C.check_function(function.SerializeToString(), ctx)
  
file_path: catboost/contrib/libs/onnx/onnx/checker.py
imports: import functools
  import sys
  from typing import Any, Callable, Optional, Type, TypeVar, Union, cast
  from google.protobuf.message import Message
  import onnx.defs
  from onnx.onnx_cpp2py_export import checker
  import onnx.shape_inference
  from onnx import IR_VERSION, AttributeProto, FunctionProto, GraphProto, ModelProto, NodeProto, SparseTensorProto, TensorProto, ValueInfoProto, helper
label_desc: Use image node_id 6 for calling a global function with example usage: check_function(function, ctx) without return types