class_docstr: Integration tests for clustering MHA layer.
docstr: Returns functional model with MHA layer.
docstr_tok: ["Returns","functional","model","with","MHA","layer","."]
code: def _get_model(self):
      """Returns functional model with MHA layer."""
      inp = tf.keras.layers.Input(shape=(32, 32), batch_size=100)
      x = tf.keras.layers.MultiHeadAttention(num_heads=2, key_dim=16)(
          query=inp, value=inp
      )
      out = tf.keras.layers.Flatten()(x)
      model = tf.keras.Model(inputs=inp, outputs=out)
      return model
  
imports: import os
  import tempfile
  from absl.testing import parameterized
  import numpy
  import tensorflow
  from tensorflow_model_optimization.python.core.clustering.keras import cluster
  from tensorflow_model_optimization.python.core.clustering.keras import cluster_config
  from tensorflow_model_optimization.python.core.clustering.keras.experimental import cluster
label_desc: Use image node_id 2 for calling the ClusterMHAIntegrationTest obj's underlying member method code with example usage: obj._get_model() and returns: model