code: def test_correctness_sparse(self):
      import tensorflow as tf
  
      layer = layers.Embedding(input_dim=3, output_dim=2)
      layer.build()
      layer.embeddings.assign(
          np.array([[0.0, 0.0], [2.0, 2.0], [3.0, 3.0]])
      )
      x = tf.SparseTensor(
          indices=[[0, 0], [1, 2]], values=[2, 1], dense_shape=(2, 3)
      )
      self.assertAllClose(
          layer(x),
          np.array(
              [
                  [[3.0, 3.0], [0.0, 0.0], [0.0, 0.0]],
                  [[0.0, 0.0], [0.0, 0.0], [2.0, 2.0]],
              ]
          ),
      )
  
file_path: keras/keras/layers/core/embedding_test.py
imports: import os
  import numpy
  import pytest
  from keras import backend
  from keras import constraints
  from keras import layers
  from keras import models
  from keras import saving
  from keras.testing import test_case
label_desc: Use image node_id 4 for calling the EmbeddingTest obj's underlying member method code with example usage: obj.test_correctness_sparse() without return types