class_docstr: Mixin to provide easy access to temp dir.
      
code: def get_base_temp_dir(cls):
      # If AUDIOCRAFT_TEST_DIR is set, use it instead of temporary directory.
      # this is handy for debugging.
      key = "AUDIOCRAFT_TEST_DIR"
      if key in os.environ:
          return os.environ[key]
      if cls.temp_dir_ is None:
          cls.temp_dir_ = tempfile.TemporaryDirectory()
      return cls.temp_dir_.name
  
file_path: audiocraft/tests/common_utils/temp_utils.py
imports: import os
  import tempfile
label_desc: Use image node_id 1 for calling the TempDirMixin obj's underlying member method code with example usage: obj.get_base_temp_dir(cls) and returns: cls, os