code: def workspace_dir(request, board, microtvm_debug):
      """Creates workspace directory for each test."""
      parent_dir = pathlib.Path(
          os.path.dirname(request.module.__file__)
      )
      board_workspace = (
          parent_dir
          / f"workspace_{board}"
          / datetime.datetime.now().strftime("%Y-%m-%dT%H-%M-%S")
      )
      board_workspace_base = str(board_workspace)
      number = 1
      while board_workspace.exists():
          board_workspace = pathlib.Path(
              board_workspace_base + f"-{number}"
          )
          number += 1
  
      if not os.path.exists(board_workspace.parent):
          os.makedirs(board_workspace.parent)
  
      keep_for_debug = microtvm_debug if microtvm_debug else None
      test_temp_dir = tempdir(
          custom_path=board_workspace, keep_for_debug=keep_for_debug
      )
      return test_temp_dir
  
file_path: tvm/python/tvm/micro/testing/pytest_plugin.py
imports: import pathlib
  import os
  import datetime
  import pytest
  from tvm.contrib.utils import tempdir
  from .utils import get_supported_platforms, get_supported_boards
label_desc: Use image node_id 5 for calling a global function with example usage: workspace_dir(request, board, microtvm_debug) and returns: test_temp_dir