docstr: Test the uniform grid generation.
docstr_tok: ["Test","the","uniform","grid","generation","."]
code: def test_generate_random(self):
      """Test the uniform grid generation."""
      starts = np.array((0.0, 0.0), dtype=np.float32)
      stops = np.random.randint(1, 10, size=(2))
      nums = stops + 1
      stops = stops.astype(np.float32)
  
      g = grid.generate(starts, stops, nums)
      shape = nums.tolist() + [2]
      xv, yv = np.meshgrid(
          list(range(shape[0])), list(range(shape[1])), indexing="ij"
      )
      gt = np.stack((xv, yv), axis=-1).astype(np.float32)
  
      self.assertAllClose(g, gt)
  
file_path: graphics/tensorflow_graphics/geometry/representation/tests/grid_test.py
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 import grid
  from tensorflow_graphics.util import test_case
label_desc: Use image node_id 4 for calling the GridTest obj's underlying member method code with example usage: obj.test_generate_random() without return types