code: def check_samples_not_nan(self, dist):
      hp.note(
          "Trying distribution {}".format(
              self.evaluate_dict(dist.parameters)
          )
      )
      seed = test_util.test_seed(sampler_type="stateless")
      with tfp_hps.no_tf_rank_errors():
          samples = self.evaluate(dist.sample(20, seed=seed))
      self.assertAllEqual(np.zeros_like(samples), np.isnan(samples))
      return samples
  
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 3 for calling the NoNansTest obj's underlying member method code with example usage: obj.check_samples_not_nan(dist) and returns: samples