code: def test_translations_to_projective_transforms():
      translation = tf.constant([-1, -1], dtype=tf.float32)
      transform = translate_ops.translations_to_projective_transforms(
          translation
      )
      np.testing.assert_equal(
          transform.numpy(), [[1, 0, 1, 0, 1, 1, 0, 0]]
      )
  
file_path: addons/tensorflow_addons/image/tests/translate_ops_test.py
imports: import numpy
  import pytest
  import scipy
  import tensorflow
  from PIL import Image
  from tensorflow_addons.image import translate_ops
  from tensorflow_addons.utils import test_utils
label_desc: Use image node_id 2 for calling a global function with example usage: test_translations_to_projective_transforms() without return types