class_docstr: Mixin to provide easy access to temp dir
class_docstr_tok: ["Mixin","to","provide","easy","access","to","temp","dir"]
code: def get_base_temp_dir(cls):
      # If TORCHAUDIO_TEST_TEMP_DIR is set, use it instead of temporary directory.
      # this is handy for debugging.
      key = "TORCHAUDIO_TEST_TEMP_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
  
imports: import functools
  import os.path
  import shutil
  import subprocess
  import sys
  import tempfile
  import time
  import unittest
  from itertools import zip_longest
  import torch
  import torchaudio
  import torio
  from torch.testing._internal.common_utils import TestCase
  from torchaudio._internal.module_utils import eval_env, is_module_available
  from torchaudio.utils.ffmpeg_utils import get_video_decoders, get_video_encoders
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