code: def bento_directory(request: FixtureRequest):
      bento_path = os.path.dirname(
          os.path.dirname(os.path.realpath(__file__))
      )
      os.chdir(bento_path)
      sys.path.insert(0, bento_path)
      yield
      os.chdir(request.config.invocation_dir)
      sys.path.pop(0)
  
file_path: BentoML/tests/e2e/bento_server_http/tests/conftest.py
imports: from __future__ import annotations
  import os
  import subprocess
  import sys
  import typing
  from typing import TYPE_CHECKING
  import pytest
label_desc: Use image node_id 3 for calling a global function with example usage: bento_directory(request) without return types