code: def testStaticEvaluation(
      self,
      predicate_fn,
      expected_truth_value,
      expect_static_graph_evaluation,
  ):
      predicate = predicate_fn()
      static_predicate = ps._get_static_predicate(predicate)
  
      if tf.executing_eagerly() or expect_static_graph_evaluation:
          # If we are in eager mode, we always expect static evaluation.
          self.assertIsNotNone(static_predicate)
          self.assertEqual(expected_truth_value, static_predicate)
      else:
          self.assertIsNone(static_predicate)
  
imports: from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python.internal import dtype_util
  from tensorflow_probability.python.internal import prefer_static
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 1 for calling the GetStaticValueTest obj's underlying member method code with example usage: obj.testStaticEvaluation(predicate_fn, expected_truth_value, expect_static_graph_evaluation) without return types