code: def _override_parent_methods(keep_items):
      """Makes inheritted attributes of the TFT layer unusable and undocumented."""
      for name in dir(tf_keras.Model):
          if name.startswith("_") or name in keep_items:
              continue
          if callable(getattr(tf_keras.Model, name)):
              setattr(
                  TransformFeaturesLayer,
                  name,
                  _make_method_override(name),
              )
          elif not isinstance(
              getattr(TransformFeaturesLayer, name), property
          ):
              doc_controls.do_not_generate_docs(
                  getattr(TransformFeaturesLayer, name)
              )
  
imports: import json
  import os
  from typing import Any, Dict, List, Mapping, Optional
  import numpy
  import tensorflow
  from tensorflow_transform import common
  from tensorflow_transform import common_types
  from tensorflow_transform import graph_tools
  from tensorflow_transform.analyzers import sanitized_vocab_filename
  from tensorflow_transform.keras_lib import tf_keras
  from tensorflow_transform.saved import saved_transform_io
  from tensorflow_transform.saved import saved_transform_io_v2
  from tensorflow_transform.tf_metadata import dataset_metadata
  from tensorflow_transform.tf_metadata import metadata_io
  from tensorflow_transform.tf_metadata import schema_utils
  from tensorflow.python.framework import ops
  from tensorflow.tools.docs import doc_controls
  from tensorflow_metadata.proto.v0 import schema_pb2
label_desc: Use image node_id 3 for calling a global function with example usage: _override_parent_methods(keep_items) without return types