code: def _attribute_value(attribute_type, attribute_value):
      if attribute_value in ("None", "np.finfo(float).eps"):
          return None
      if attribute_type in ("float32", "int32", "boolean", "string"):
          if (
              attribute_value in ("'auto'", '"auto"')
              or attribute_type == "string"
          ):
              return attribute_value.strip("'").strip('"')
      if attribute_type == "float32":
          return float(attribute_value)
      if attribute_type == "int32":
          return int(attribute_value)
      if attribute_type == "boolean":
          if attribute_value in ("True", "False"):
              return attribute_value == "True"
          raise ValueError(
              "Unknown boolean default value '"
              + str(attribute_value)
              + "'."
          )
      if attribute_type:
          raise ValueError(
              "Unknown default type '" + attribute_type + "'."
          )
      return attribute_value.strip("'")
  
file_path: netron/tools/sklearn_metadata.py
imports: import json
  import os
  import pydoc
  import re
label_desc: Use image node_id 3 for calling a global function with example usage: _attribute_value(attribute_type, attribute_value) and returns: attribute_value, None, float, int, attribute_value, unknown