code: def test_torch_batch_processor_context_prepare_model_for_inference_calls_eval(
      mock_get_default_device: unittest.mock.MagicMock,
  ) -> None:
      mock_get_default_device.return_value = DEFAULT_DEVICE
  
      core_context = core._dummy_init(distributed=_get_dist_context())
      torch_batch_processor_context = (
          experimental.TorchBatchProcessorContext(
              core_context, DEFAULT_STORAGE_PATH
          )
      )
  
      model = unittest.mock.MagicMock()
      torch_batch_processor_context.prepare_model_for_inference(model)
  
      # Test model.eval() called
      model.eval.assert_called_once()
  
imports: import math
  import unittest.mock
  from typing import Any, Dict, List, Optional
  import pytest
  import torch
  from torch.utils import data
  from determined import core, pytorch
  from determined.pytorch import experimental
  from tests.launch import test_util
label_desc: Use image node_id 14 for calling a global function with example usage: test_torch_batch_processor_context_prepare_model_for_inference_calls_eval(mock_get_default_device) without return types