docstr: Tests whether the barycentric coordinates are normalized.
docstr_tok: ["Tests","whether","the","barycentric","coordinates","are","normalized","."]
code: def test_get_barycentric_coordinates_normalized(self):
      """Tests whether the barycentric coordinates are normalized."""
      tensor_size = np.random.randint(3)
      tensor_shape = np.random.randint(
          1, 10, size=(tensor_size)
      ).tolist()
      num_pixels = np.random.randint(1, 10)
      pixels_shape = tensor_shape + [num_pixels]
      triangle_vertices = np.random.random(tensor_shape + [3, 2])
      pixels = np.random.random(pixels_shape + [2])
  
      barycentric_coordinates, _ = weighted.get_barycentric_coordinates(
          triangle_vertices, pixels
      )
      barycentric_coordinates_sum = tf.reduce_sum(
          input_tensor=barycentric_coordinates, axis=-1
      )
  
      self.assertAllClose(
          barycentric_coordinates_sum, np.full(pixels_shape, 1.0)
      )
  
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 11 for calling the WeightedTest obj's underlying member method code with example usage: obj.test_get_barycentric_coordinates_normalized() without return types