code: def testFilterByInputNamesKeras(self):
      tensors = {
          "f1": tf.constant([[1.1], [2.1]], dtype=tf.float32),
          "f2": tf.constant([[1], [2]], dtype=tf.int64),
          "f3": tf.constant([["hello"], ["world"]], dtype=tf.string),
      }
      filtered_tensors = model_util.filter_by_input_names(
          tensors,
          [
              "f1" + model_util.KERAS_INPUT_SUFFIX,
              "f3" + model_util.KERAS_INPUT_SUFFIX,
          ],
      )
      self.assertLen(filtered_tensors, 2)
      self.assertAllEqual(
          tf.constant([[1.1], [2.1]], dtype=tf.float32),
          filtered_tensors["f1" + model_util.KERAS_INPUT_SUFFIX],
      )
      self.assertAllEqual(
          tf.constant([["hello"], ["world"]], dtype=tf.string),
          filtered_tensors["f3" + model_util.KERAS_INPUT_SUFFIX],
      )
  
imports: import tempfile
  import unittest
  from absl.testing import parameterized
  import apache_beam
  from apache_beam.testing import util
  import numpy
  import tensorflow
  from tensorflow_model_analysis import constants
  from tensorflow_model_analysis.api import types
  from tensorflow_model_analysis.eval_saved_model import testutil
  from tensorflow_model_analysis.proto import config_pb2
  from tensorflow_model_analysis.utils import model_util
  from tensorflow_model_analysis.utils import util
  from tfx_bsl.tfxio import tf_example_record
  from google.protobuf import text_format
  from tensorflow.core.protobuf import saved_model_pb2
  from tensorflow_metadata.proto.v0 import schema_pb2
label_desc: Use image node_id 9 for calling the ModelUtilTest obj's underlying member method code with example usage: obj.testFilterByInputNamesKeras() without return types