docstr: Tests that the ray function gives the correct result.
docstr_tok: ["Tests","that","the","ray","function","gives","the","correct","result","."]
code: def test_random_patches_preset(self, test_inputs, test_outputs):
      """Tests that the ray function gives the correct result."""
      self.assert_output_is_correct(
          perspective.random_patches,
          test_inputs,
          test_outputs,
          tile=False,
      )
  
imports: import math
  import sys
  from absl.testing import parameterized
  import numpy
  import tensorflow
  from tensorflow_graphics.rendering.camera import perspective
  from tensorflow_graphics.util import test_case
label_desc: Use image node_id 38 for calling the PerspectiveTest obj's underlying member method code with example usage: obj.test_random_patches_preset(test_inputs, test_outputs) without return types