docstr: Test for generate_random_barycentric_coordinates.
docstr_tok: ["Test","for","generate_random_barycentric_coordinates","."]
code: def test_random_barycentric_coordinates(self, sample_shape):
      """Test for generate_random_barycentric_coordinates."""
      sample_shape = np.array(sample_shape, dtype=np.intp)
      random_coordinates = (
          sampler.generate_random_barycentric_coordinates(
              sample_shape=sample_shape
          )
      )
      coordinate_sum = tf.reduce_sum(
          input_tensor=random_coordinates, axis=-1
      )
      expected_coordinate_sum = np.ones(shape=sample_shape)
      self.assertAllClose(expected_coordinate_sum, coordinate_sum)
  
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.geometry.representation.mesh import sampler
  from tensorflow_graphics.geometry.representation.mesh.tests import mesh_test_utils
  from tensorflow_graphics.util import test_case
label_desc: Use image node_id 9 for calling the MeshSamplerTest obj's underlying member method code with example usage: obj.test_random_barycentric_coordinates(sample_shape) without return types