code: def ignore_attrs_method(path, parent, children):
      """Remove auto generated attrs 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 attrs auto
        generated methods removed (e.g., __eq__, __ge__, __gt__)
      """
      del path
      del parent
      new_children = []
      for name, obj in children:
          if name in [
              "__eq__",
              "__ge__",
              "__gt__",
              "__le__",
              "__lt__",
              "__ne__",
          ]:
              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 2 for calling a global function with example usage: ignore_attrs_method(path, parent, children) and returns: new_children