docstr: Tests that the matte can be reconstructed by using the coefficients .
docstr_tok: ["Tests","that","the","matte","can","be","reconstructed","by","using","the","coefficients","."]
code: def test_linear_coefficients_reconstruction_opposite_images(
      self, size
  ):
      """Tests that the matte can be reconstructed by using the coefficients ."""
      tensor_shape = np.random.randint(size, 6, size=3).tolist()
      image = np.random.uniform(0.0, 1.0, size=tensor_shape + [1])
  
      _, pseudo_inverse = matting.build_matrices(image, size=size)
      a, b = matting.linear_coefficients(1.0 - image, pseudo_inverse)
      reconstructed = matting.reconstruct(image, a, b)
  
      self.assertAllClose(1.0 - image, reconstructed, 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 10 for calling the MattingTest obj's underlying member method code with example usage: obj.test_linear_coefficients_reconstruction_opposite_images(size) without return types