code: def testBaselineGradients(self):
      loss = self.op.extra.baseline_loss
      grad_baseline = tf.gradients(loss, self.baseline_values)[0]
      self.assertEqual(
          grad_baseline.get_shape(), tf.TensorShape([2, 1])
      )
      self.assertAllEqual(
          tf.gradients(loss, self.policy_logits), [None]
      )
      self.assertAllEqual(
          tf.gradients(loss, self.invalid_grad_inputs),
          self.invalid_grad_outputs,
      )
  
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 xrange
  import tensorflow.compat.v1
  import tree
  from trfl import discrete_policy_gradient_ops
label_desc: Use image node_id 5 for calling the SequenceAdvantageActorCriticLossGradientTest obj's underlying member method code with example usage: obj.testBaselineGradients() without return types