code: def _find_attribute(schema, name):
      schema.setdefault("attributes", [])
      attribute = next(
          (_ for _ in schema["attributes"] if _["name"] == name), None
      )
      if not attribute:
          attribute = {"name": name}
          schema["attributes"].append(attribute)
      return attribute
  
file_path: netron/tools/sklearn_metadata.py
imports: import json
  import os
  import pydoc
  import re
label_desc: Use image node_id 4 for calling a global function with example usage: _find_attribute(schema, name) and returns: attribute