docstr: Tests the Jacobian of the build_matrices function.
docstr_tok: ["Tests","the","Jacobian","of","the","build_matrices","function","."]
code: def test_build_matrices_jacobian_random(self, size, channels):
      """Tests the Jacobian of the build_matrices function."""
      tensor_shape = np.random.randint(size, 6, size=3)
      image_init = np.random.uniform(
          0.0, 1.0, size=tensor_shape.tolist() + [channels]
      )
  
      with self.subTest(name="laplacian"):
          self.assert_jacobian_is_correct_fn(
              lambda image: matting.build_matrices(image, size=size)[0],
              [image_init],
          )
      with self.subTest(name="pseudo_inverse"):
          self.assert_jacobian_is_correct_fn(
              lambda image: matting.build_matrices(image, size=size)[1],
              [image_init],
          )
  
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 1 for calling the MattingTest obj's underlying member method code with example usage: obj.test_build_matrices_jacobian_random(size, channels) without return types