code: def output_directory_manager(tmpdir) -> str:
      """This convenience fixture creates temporary directory "training_results_output" and yields it to user test
      functions.
  
      When the user test functions complete their execution, this fixture resumes and cleans up the temporary directory.
      """
      # Create a temporary folder designating training output directory.
      output_directory: str = str(
          tmpdir.mkdir("training_results_output")
      )
  
      yield output_directory
  
      # Clean up: Remove the temporary output directory and its contents.
      shutil.rmtree(output_directory)
  
file_path: ludwig/tests/ludwig/utils/test_upload_utils.py
imports: from __future__ import annotations
  import logging
  import pathlib
  import shutil
  import pytest
  from ludwig.utils.upload_utils import HuggingFaceHub
label_desc: Use image node_id 2 for calling a global function with example usage: output_directory_manager(tmpdir) without return types