code: def hh_assets(request):
      """Construct a temporary HyperparameterHunterAssets directory that exists only for the duration
      of the tests contained in each module, before it and its contents are deleted
      """
      temp_assets_path = assets_dir
      try:
          makedirs(temp_assets_path)
      except (
          FileExistsError
      ):  # Can happen if tests stopped before deleting directory - Must empty it
          rmtree(temp_assets_path)
          makedirs(temp_assets_path)
      yield
      rmtree(temp_assets_path)
  
file_path: hyperparameter_hunter/tests/conftest.py
imports: from hyperparameter_hunter import settings
  from hyperparameter_hunter.environment import Environment
  from hyperparameter_hunter.utils.learning_utils import get_toy_classification_data
  from os import makedirs
  import pytest
  from shutil import rmtree
label_desc: Use image node_id 2 for calling a global function with example usage: hh_assets(request) without return types