code: def test_dispatch_keras(self):
      from bigdl.nano.tf import patch_tensorflow, unpatch_tensorflow
  
      patch_tensorflow()
      import keras
      import tensorflow
      import bigdl.nano
  
      # not checking keras.Model since there is no change
      assert issubclass(
          tensorflow.keras.Sequential, bigdl.nano.tf.keras.Sequential
      )
      assert issubclass(
          keras.Sequential, bigdl.nano.tf.keras.Sequential
      )
      assert issubclass(
          keras.layers.Embedding, bigdl.nano.tf.keras.layers.Embedding
      )
      assert issubclass(
          tensorflow.keras.layers.Embedding,
          bigdl.nano.tf.keras.layers.Embedding,
      )
      assert issubclass(
          tensorflow.keras.optimizers.Adam,
          bigdl.nano.tf.optimizers.SparseAdam,
      )
  
      unpatch_tensorflow()
      # not checking keras.Model since there is no change
      assert not issubclass(
          tensorflow.keras.Sequential, bigdl.nano.tf.keras.Sequential
      )
      assert not issubclass(
          keras.Sequential, bigdl.nano.tf.keras.Sequential
      )
      assert not issubclass(
          keras.layers.Embedding, bigdl.nano.tf.keras.layers.Embedding
      )
      assert not issubclass(
          tensorflow.keras.layers.Embedding,
          bigdl.nano.tf.keras.layers.Embedding,
      )
      assert not issubclass(
          tensorflow.optimizers.Adam,
          bigdl.nano.tf.optimizers.SparseAdam,
      )
  
imports: from unittest import TestCase
label_desc: Use image node_id 1 for calling the TestDispatcherKeras obj's underlying member method code with example usage: obj.test_dispatch_keras() without return types