docstr: Checks that creating a dataset works.
code: def testCreateDataset(self):
      """Checks that creating a dataset works."""
      # Technically this is private functionality, but we don't have it tested
      # elsewhere.
      model = log_gaussian_cox_process.LogGaussianCoxProcess(
          **_test_dataset()
      )
      model2 = log_gaussian_cox_process.LogGaussianCoxProcess(
          **model._sample_dataset(tfp_test_util.test_seed())
      )
      self.validate_log_prob_and_transforms(
          model2,
          sample_transformation_shapes=dict(
              identity={
                  "amplitude": [],
                  "length_scale": [],
                  "log_intensity": [10],
              },
          ),
      )
  
file_path: probability/spinoffs/inference_gym/inference_gym/targets/log_gaussian_cox_process_test.py
imports: import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.internal import test_util
  from inference_gym.internal import test_util
  from inference_gym.targets import log_gaussian_cox_process
label_desc: Use image node_id 2 for calling the LogGaussianCoxProcessTest obj's underlying member method code with example usage: obj.testCreateDataset() without return types