code: def skip_if_tf1(self):
      # This is a hack to check whether we're running under TF1, which
      # seems to have a less-accurate implementation of some special
      # function.
      # pylint: disable=g-import-not-at-top
      import tensorflow
  
      if hasattr(tensorflow, "Session"):
          self.skipTest(
              "TODO(axch): TF1 seems to have an inaccurate base function"
          )
  
imports: import collections
  from absl.testing import parameterized
  import hypothesis
  from hypothesis import strategies
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.distributions import hypothesis_testlib
  from tensorflow_probability.python.internal import hypothesis_testlib
  from tensorflow_probability.python.internal import numerics_testing
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.math.psd_kernels import hypothesis_testlib
label_desc: Use image node_id 1 for calling the DistributionAccuracyTest obj's underlying member method code with example usage: obj.skip_if_tf1() without return types