docstr: Tests the Jacobian of the point lighting equation.
docstr_tok: ["Tests","the","Jacobian","of","the","point","lighting","equation","."]
code: def test_estimate_radiance_jacobian_random(self):
      """Tests the Jacobian of the point lighting equation."""
      tensor_size = np.random.randint(1, 3)
      tensor_shape = np.random.randint(1, 10, size=tensor_size).tolist()
      light_tensor_size = np.random.randint(1, 3)
      lights_tensor_shape = np.random.randint(
          1, 10, size=light_tensor_size
      ).tolist()
      point_light_radiance_init = random_tensor(
          lights_tensor_shape + [1]
      )
      point_light_position_init = random_tensor(
          lights_tensor_shape + [3]
      )
      surface_point_position_init = random_tensor(tensor_shape + [3])
      surface_point_normal_init = random_tensor(tensor_shape + [3])
      observation_point_init = random_tensor(tensor_shape + [3])
  
      def estimate_radiance_fn(
          point_light_position,
          surface_point_position,
          surface_point_normal,
          observation_point,
      ):
          return point_light.estimate_radiance(
              point_light_radiance_init,
              point_light_position,
              surface_point_position,
              surface_point_normal,
              observation_point,
              fake_brdf,
          )
  
      self.assert_jacobian_is_correct_fn(
          estimate_radiance_fn,
          [
              point_light_position_init,
              surface_point_position_init,
              surface_point_normal_init,
              observation_point_init,
          ],
      )
  
file_path: graphics/tensorflow_graphics/rendering/light/tests/point_light_test.py
imports: import math
  from absl.testing import flagsaver
  from absl.testing import parameterized
  import numpy
  import tensorflow
  from tensorflow_graphics.rendering.light import point_light
  from tensorflow_graphics.util import test_case
label_desc: Use image node_id 2 for calling the PointLightTest obj's underlying member method code with example usage: obj.test_estimate_radiance_jacobian_random() and returns: point_light