code: def setUpClass(cls) -> None:
      cls._tmpdir = tempfile.mkdtemp()
      args = argparse.Namespace()
      args.opts = [
          f"env.save_dir={cls._tmpdir}",
          f"model=cnn_lstm",
          f"dataset=clevr",
      ]
      args.opts.append(
          f"config={os.path.join('configs', 'defaults.yaml')}"
      )
      args.config_override = None
      configuration = Configuration(args)
      configuration.freeze()
      cls.config = configuration.get_config()
      registry.register("config", cls.config)
      cls.writer = setup_logger()
  
file_path: mmf/tests/utils/test_logger.py
imports: import argparse
  import glob
  import os
  import shutil
  import tempfile
  import unittest
  from typing import Optional
  from mmf.common.registry import registry
  from mmf.utils.configuration import Configuration
  from mmf.utils.file_io import PathManager
  from mmf.utils.logger import setup_logger
label_desc: Use image node_id 1 for calling the TestLogger obj's underlying member method code with example usage: obj.setUpClass(cls) without return types