docstr: Test for generate_random_face_indices.
docstr_tok: ["Test","for","generate_random_face_indices","."]
code: def test_random_face_indices(
      self, face_weights, num_samples, expected
  ):
      """Test for generate_random_face_indices."""
      face_weights = np.array(face_weights, dtype=np.float32)
      expected = np.array(expected, dtype=np.intp)
      sample_faces = sampler.generate_random_face_indices(
          num_samples, face_weights
      )
  
      self.assertEqual(sample_faces.shape[0], num_samples)
      self.compare_poisson_equivalence(
          expected, tf.math.bincount(sample_faces)
      )
  
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 6 for calling the MeshSamplerTest obj's underlying member method code with example usage: obj.test_random_face_indices(face_weights, num_samples, expected) without return types