code: def ignore_proto_method(path, parent, children):
      """Remove all the proto inherited methods.
  
      Args:
        path: A tuple of name parts forming the attribute-lookup path to this
          object. For `tf.keras.layers.Dense` path is:
            ("tf","keras","layers","Dense")
        parent: The parent object.
        children: A list of (name, value) pairs. The attributes of the patent.
  
      Returns:
        A filtered list of children `(name, value)` pairs. With all proto methods
        removed.
      """
      del path
      new_children = []
      if not isinstance(parent, GeneratedProtocolMessageType):
          return children
      new_children = []
      for name, obj in children:
          if "function" in str(obj.__class__):
              continue
          new_children.append((name, obj))
      return new_children
  
file_path: ml-metadata/ml_metadata/tools/documentation/build_docs.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  from absl import app
  from absl import flags
  from tensorflow_docs.api_generator import doc_controls
  from tensorflow_docs.api_generator import generate_lib
  from tensorflow_docs.api_generator import public_api
  import ml_metadata
  from google.protobuf.reflection import GeneratedProtocolMessageType
label_desc: Use image node_id 1 for calling a global function with example usage: ignore_proto_method(path, parent, children) and returns: new_children, children