code: def test_tensorflow_optimizer(self):
      data = tf.keras.layers.Input(shape=[10])
  
      x = tf.keras.layers.Flatten()(data)
      x = tf.keras.layers.Dense(10, activation="relu")(x)
      predictions = tf.keras.layers.Dense(2, activation="softmax")(x)
  
      model = tf.keras.models.Model(inputs=data, outputs=predictions)
      model.compile(
          optimizer=tf.train.AdamOptimizer(),
          loss="sparse_categorical_crossentropy",
          metrics=["accuracy"],
      )
  
      keras_model = KerasModel(model)
  
      x, y = self.create_training_data()
  
      keras_model.fit(x, y, batch_size=4, distributed=True)
  
imports: import pytest
  from bigdl.orca.test_zoo_utils import ZooTestCase
  import tensorflow
  import numpy
  import os
  from bigdl.orca.tfpark import KerasModel, TFDataset, TFOptimizer
label_desc: Use image node_id 22 for calling the TestTFParkModel obj's underlying member method code with example usage: obj.test_tensorflow_optimizer() without return types