code: def test_remote_bento_strategy_pull_yatai(build_bento: bentoml.Bento):
      bentoml.set_serialization_strategy("REMOTE_BENTO")
      svc = bentoml.load(build_bento.tag)
  
      mock_bentocloud_client = MagicMock()
  
      def pull_bento(*args: t.Any, **kwargs: t.Any):
          working_dir = os.getcwd()
          bento = build_test_bento()
          os.chdir(working_dir)
          bento.save()
          if "simplebento" in sys.modules:
              del sys.modules["simplebento"]
  
      mock_bentocloud_client.pull_bento.side_effect = pull_bento
  
      _bentocloud_client = BentoMLContainer.bentocloud_client.get()
      BentoMLContainer.bentocloud_client.set(mock_bentocloud_client)
  
      serialized_svc = cloudpickle.dumps(svc)
      bentoml.bentos.delete(build_bento.tag)
  
      del sys.modules["simplebento"]
      assert svc == cloudpickle.loads(serialized_svc)
      mock_bentocloud_client.pull_bento.assert_called_once_with(
          Tag("test.simplebento", "1.0"), bento_store=ANY
      )
  
      # Reset mock bentocloud_client
      BentoMLContainer.bentocloud_client.set(_bentocloud_client)
  
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 8 for calling a global function with example usage: test_remote_bento_strategy_pull_yatai(build_bento) without return types