code: def test_dataset_download(self):
      with testing.mock_kaggle_api():
          with testing.tmp_dir() as tmp_dir:
              out_path = kaggle.download_kaggle_data(
                  "user/dataset", tmp_dir
              )
              self.assertIsInstance(out_path, os.PathLike)
              self.assertEqual(
                  os.fspath(out_path),
                  os.path.join(tmp_dir, "user_dataset"),
              )
              with tf.io.gfile.GFile(
                  os.path.join(out_path, "output.txt")
              ) as f:
                  self.assertEqual("user/dataset", f.read())
  
file_path: datasets/tensorflow_datasets/core/download/kaggle_test.py
imports: import os
  import tensorflow
  from tensorflow_datasets import testing
  from tensorflow_datasets.core.download import kaggle
label_desc: Use image node_id 2 for calling the KaggleTest obj's underlying member method code with example usage: obj.test_dataset_download() without return types