code: def check_attribute(
      attr: AttributeProto,
      ctx: C.CheckerContext = DEFAULT_CONTEXT,
      lexical_scope_ctx: C.LexicalScopeContext = LEXICAL_SCOPE_CONTEXT,
  ) -> None:
      _ensure_proto_type(attr, AttributeProto)
      return C.check_attribute(
          attr.SerializeToString(), ctx, lexical_scope_ctx
      )
  
file_path: onnx/onnx/checker.py
imports: from __future__ import annotations
  import os
  import sys
  from typing import Any, Callable, TypeVar
  from google.protobuf.message import Message
  import onnx.defs
  import onnx.onnx_cpp2py_export.checker
  import onnx.shape_inference
  from onnx import IR_VERSION, AttributeProto, FunctionProto, GraphProto, ModelProto, NodeProto, SparseTensorProto, TensorProto, ValueInfoProto
label_desc: Use image node_id 4 for calling a global function with example usage: check_attribute(attr, ctx, lexical_scope_ctx) and returns: C