docstr: Tests the Jacobian of get_barycentric_coordinates.
docstr_tok: ["Tests","the","Jacobian","of","get_barycentric_coordinates","."]
code: def test_get_barycentric_coordinates_jacobian_random(self):
      """Tests the Jacobian of get_barycentric_coordinates."""
      tensor_size = np.random.randint(2)
      tensor_shape = np.random.randint(
          1, 2, size=(tensor_size)
      ).tolist()
      triangle_vertices_init = (
          0.4
          * np.random.random(tensor_shape + [3, 2]).astype(np.float64)
          - 0.2
      )
      triangle_vertices_init += np.array(
          ((0.25, 0.25), (0.5, 0.75), (0.75, 0.25))
      )
      pixels_init = np.random.random(tensor_shape + [3, 2]).astype(
          np.float64
      )
  
      barycentric_fn = weighted.get_barycentric_coordinates
  
      self.assert_jacobian_is_correct_fn(
          lambda vertices, pixels: barycentric_fn(vertices, pixels)[0],
          [triangle_vertices_init, pixels_init],
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import parameterized
  import numpy
  from six.moves import range
  import tensorflow
  from tensorflow_graphics.math.interpolation import weighted
  from tensorflow_graphics.util import test_case
label_desc: Use image node_id 10 for calling the WeightedTest obj's underlying member method code with example usage: obj.test_get_barycentric_coordinates_jacobian_random() without return types