code: def _metadata():
      root = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
      json_path = os.path.join(root, "source", "keras-metadata.json")
      json_root = json.loads(_read(json_path))
  
      skip_names = set(
          [
              "keras.layers.InputLayer",
              "keras.layers.ThresholdedReLU",
              "keras.layers.LocallyConnected1D",
              "keras.layers.LocallyConnected2D",
          ]
      )
  
      for metadata in json_root:
          if "module" in metadata:
              name = metadata["module"] + "." + metadata["name"]
              if not name in skip_names:
                  cls = pydoc.locate(name)
                  if not cls:
                      raise KeyError("'" + name + "' not found.")
                  if not cls.__doc__:
                      raise AttributeError(
                          "'" + name + "' missing __doc__."
                      )
                  if cls.__doc__ == "DEPRECATED.":
                      raise DeprecationWarning(
                          "'"
                          + name
                          + "' __doc__ string is deprecated.'"
                      )
                  _update_headers(metadata, cls.__doc__)
  
      with open(json_path, "w", encoding="utf-8") as file:
          content = json.dumps(json_root, sort_keys=False, indent=2)
          for line in content.splitlines():
              file.write(line.rstrip() + "\n")
  
file_path: netron/tools/keras_metadata.py
imports: import json
  import os
  import pydoc
  import re
label_desc: Use image node_id 12 for calling a global function with example usage: _metadata() without return types