code: def build_bento():
      bento_store = BentoMLContainer.bento_store.get()
      tmp_store = BentoMLContainer.tmp_bento_store.get()
      working_dir = os.getcwd()
      bento = build_test_bento()
      os.chdir(working_dir)
      bento.save(bento_store)
      if "simplebento" in sys.modules:
          del sys.modules["simplebento"]
      yield bento
      try:
          bento_store.delete(bento.tag)
      except NotFound:
          pass
      try:
          tmp_store.delete(bento.tag)
      except NotFound:
          pass
  
imports: from __future__ import annotations
  import os
  import sys
  import typing
  from unittest.mock import ANY
  from unittest.mock import MagicMock
  import cloudpickle
  import pytest
  import bentoml
  from bentoml._internal.configuration.containers import BentoMLContainer
  from bentoml._internal.tag import Tag
  from bentoml.exceptions import NotFound
  from .test_bento import build_test_bento
label_desc: Use image node_id 1 for calling a global function with example usage: build_bento() without return types