code: def _setup_load_model_mocks(
      self, openMock, pickleLoadMock, seed, idx, budget
  ):
      model_path = "/runs/%s_%s_%s/%s.%s.%s.model" % (
          seed,
          idx,
          budget,
          seed,
          idx,
          budget,
      )
      file_handler = "file_handler"
      expected_model = "model"
  
      fileMock = unittest.mock.MagicMock()
      fileMock.__enter__.return_value = file_handler
  
      openMock.side_effect = (
          lambda path, flag: fileMock
          if path == model_path and flag == "rb"
          else None
      )
      pickleLoadMock.side_effect = (
          lambda fh: expected_model if fh == file_handler else None
      )
  
      return expected_model
  
file_path: auto-sklearn/test/test_util/test_backend.py
imports: import builtins
  from autosklearn.automl_common.common.utils.backend import Backend
  import unittest
  import unittest.mock
label_desc: Use image node_id 4 for calling the BackendModelsTest obj's underlying member method code with example usage: obj._setup_load_model_mocks(openMock, pickleLoadMock, seed, idx, budget) and returns: expected_model