code: def setUpClass(cls):
      cls.mock_imagenet_dir = tempfile.mkdtemp()
      cls.mock_output_dir = tempfile.mkdtemp()
      cls.noun_id_to_text = _mock_imagenet_dir(cls.mock_imagenet_dir)
  
file_path: petastorm/examples/imagenet/tests/test_generate_imagenet_dataset.py
imports: import os
  import shutil
  import tempfile
  import unittest
  import cv2
  import numpy
  from examples.imagenet.generate_petastorm_imagenet import download_nouns_mapping, imagenet_directory_to_petastorm_dataset
label_desc: Use image node_id 1 for calling the TestGenerate obj's underlying member method code with example usage: obj.setUpClass(cls) without return types