code: def _setup_test_directory() -> tuple[str, str]:
      # Ensure we setup correct home and prometheus_multiproc_dir folders.
      # For any given test session.
      bentoml_home = tempfile.mkdtemp("bentoml-pytest")
      bentos = os.path.join(bentoml_home, "bentos")
      models = os.path.join(bentoml_home, "models")
      tmp_bentos = os.path.join(bentoml_home, "tmp_bentos")
      multiproc_dir = os.path.join(
          bentoml_home, "prometheus_multiproc_dir"
      )
      validate_or_create_dir(bentos, models, tmp_bentos, multiproc_dir)
  
      # We need to set the below value inside container due to
      # the fact that each value is a singleton, and will be cached.
      BentoMLContainer.bentoml_home.set(bentoml_home)
      BentoMLContainer.bento_store_dir.set(bentos)
      BentoMLContainer.model_store_dir.set(models)
      BentoMLContainer.tmp_bento_store_dir.set(tmp_bentos)
      BentoMLContainer.prometheus_multiproc_dir.set(multiproc_dir)
      return bentoml_home, multiproc_dir
  
imports: from __future__ import annotations
  import contextlib
  import os
  import tempfile
  import typing
  from typing import TYPE_CHECKING
  import psutil
  import pytest
  from pytest import MonkeyPatch
  import bentoml
  from bentoml._internal.configuration import BENTOML_VERSION
  from bentoml._internal.configuration import clean_bentoml_version
  from bentoml._internal.configuration.containers import BentoMLContainer
  from bentoml._internal.models import ModelContext
  from bentoml._internal.utils import LazyLoader
  from bentoml._internal.utils import validate_or_create_dir
label_desc: Use image node_id 9 for calling a global function with example usage: _setup_test_directory() and returns: bentoml_home,  multiproc_dir