code: def _get_attr_type(
      attribute_type, attribute_name, op_type, op_domain
  ):
      key = op_domain + ":" + op_type + ":" + attribute_name
      if key in (":Cast:to", ":EyeLike:dtype", ":RandomNormal:dtype"):
          return "DataType"
      value = str(attribute_type)
      value = value[value.rfind(".") + 1 :].lower()
      if value in attribute_type_table:
          return attribute_type_table[value]
      return None
  
file_path: netron/tools/onnx_metadata.py
imports: import collections
  import json
  import os
  import re
  import onnx.backend.test.case
  import onnx.defs
label_desc: Use image node_id 3 for calling a global function with example usage: _get_attr_type(attribute_type, attribute_name, op_type, op_domain) and returns: None, str, attribute_type_table