code: def test_discriminator_loss_jacobian_finite_preset(
      self,
      loss_function,
      discriminator_value_real,
      discriminator_value_generated,
  ):
      discriminator_value_real_init = np.full(
          shape=(2, 4),
          fill_value=discriminator_value_real,
          dtype=np.float32,
      )
      discriminator_value_generated_init = np.full(
          shape=(2, 4),
          fill_value=discriminator_value_generated,
          dtype=np.float32,
      )
      discriminator_value_real = tf.convert_to_tensor(
          value=discriminator_value_real_init
      )
      discriminator_value_generated = tf.convert_to_tensor(
          value=discriminator_value_generated_init
      )
  
      loss = loss_function(
          discriminator_value_real, discriminator_value_generated
      )
  
      with self.subTest(name="with_respect_to_real"):
          self.assert_jacobian_is_finite(
              discriminator_value_real,
              discriminator_value_real_init,
              loss,
          )
      with self.subTest(name="with_respcet_to_generated"):
          self.assert_jacobian_is_finite(
              discriminator_value_generated,
              discriminator_value_generated_init,
              loss,
          )
  
imports: from absl.testing import parameterized
  import numpy
  import tensorflow
  from tensorflow_graphics.projects.gan import losses
  from tensorflow_graphics.util import test_case
label_desc: Use image node_id 21 for calling the LossesTest obj's underlying member method code with example usage: obj.test_discriminator_loss_jacobian_finite_preset(loss_function, discriminator_value_real, discriminator_value_generated) without return types