class_docstr: Base TestCase to be used for all tests.
  
  `test_data` class attribute: path to the directory with test data.
  `tmp_dir` attribute: path to temp directory reset before every test.
class_docstr_tok: ["Base","TestCase","to","be","used","for","all","tests",".","`","test_data","`","class","attribute",":","path","to","the","directory","with","test","data",".","`","tmp_dir","`","attribute",":","path","to","temp","directory","reset","before","every","test","."]
code: def setUpClass(cls):
      super().setUpClass()
      cls.test_data = os.path.join(
          os.path.dirname(__file__), "test_data"
      )
  
file_path: datasets/tensorflow_datasets/testing/test_case.py
imports: import contextlib
  import os
  import tempfile
  from unittest import mock
  from absl import logging
  from tensorflow_datasets import setup_teardown
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
  from tensorflow_datasets.testing import test_case_in_context
  from tensorflow_datasets.testing import test_utils
label_desc: Use image node_id 2 for calling the TestCase obj's underlying member method code with example usage: obj.setUpClass(cls) without return types