docstr: Tests that passing opposite images results in a loss close to 0.0.
docstr_tok: ["Tests","that","passing","opposite","images","results","in","a","loss","close","to","0.0","."]
code: def test_loss_opposite_images(self, size):
      """Tests that passing opposite images results in a loss close to 0.0."""
      tensor_shape = np.random.randint(size, 6, size=3).tolist()
      image = np.random.uniform(0.0, 1.0, size=tensor_shape + [1])
  
      laplacian, _ = matting.build_matrices(image, size=size)
      loss = matting.loss(1.0 - image, laplacian)
  
      self.assertAllClose(loss, 0.0, atol=1e-4)
  
imports: from absl.testing import parameterized
  import numpy
  import tensorflow
  from tensorflow_graphics.image import matting
  from tensorflow_graphics.util import asserts
  from tensorflow_graphics.util import shape
  from tensorflow_graphics.util import test_case
label_desc: Use image node_id 14 for calling the MattingTest obj's underlying member method code with example usage: obj.test_loss_opposite_images(size) without return types