code: def ignore_proto_methods(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 parent.
  
      Returns:
        A filtered list of children `(name, value)` pairs. With all proto methods
        removed.
      """
      del path
      if not isinstance(parent, GeneratedProtocolMessageType):
          return children
      new_children = []
      for name, obj in children:
          if callable(obj):
              continue
          new_children.append((name, obj))
      return new_children
  
file_path: tfx/tfx/tools/build_docs.py
imports: from absl import app
  from absl import flags
  import tensorflow_docs.api_generator
  from tensorflow_docs.api_generator import generate_lib
  from tfx import v1
  from tfx import version
  from tfx.utils import doc_controls
  from google.protobuf.reflection import GeneratedProtocolMessageType
label_desc: Use image node_id 2 for calling a global function with example usage: ignore_proto_methods(path, parent, children) and returns: new_children, children