code: def temp_hub_dir(tmp_path, pytestconfig):
      if not pytestconfig.getoption("use_tmp_hub_dir", default=False):
          yield
      else:
          org_dir = torch.hub.get_dir()
          subdir = os.path.join(tmp_path, "hub")
          torch.hub.set_dir(subdir)
          yield
          torch.hub.set_dir(org_dir)
          shutil.rmtree(subdir, ignore_errors=True)
  
file_path: audio/test/integration_tests/conftest.py
imports: import os
  import shutil
  import pytest
  import torch
  import torchaudio
label_desc: Use image node_id 6 for calling a global function with example usage: temp_hub_dir(tmp_path, pytestconfig) without return types