code: def test_crash_due_to_memory_exception(
      mock_logger: PicklableClientLogger,
      make_sklearn_dataset: Callable[..., Tuple[np.ndarray, ...]],
      make_automl: Callable[..., AutoML],
  ) -> None:
      """
      Fixtures
      --------
      mock_logger: PickleableClientLogger
          A mock logger to use
  
      make_sklearn_dataset : Callable[..., Tuple[np.ndarray, ...]]
          Factory to make dataset
  
      make_automl : Callable[..., AutoML]
          Factory to make automl
  
      Expects
      -------
      * The dummy prediction should raise when encoutering with StatusType.CRASHED
      * The error message should indicate it's a memory issue with `{'exitcode' -6}`
        encountered
      """
      dataset = "iris"
      task = MULTICLASS_CLASSIFICATION
  
      automl = make_automl(metrics=[accuracy])
      automl._logger = mock_logger
  
      datamanager = make_sklearn_dataset(
          dataset,
          as_datamanager=True,
          task=task,
          feat_type="numerical",
      )
  
      automl._backend.save_datamanager(datamanager)
  
      with patch(
          "autosklearn.evaluation.ExecuteTaFuncWithQueue.run"
      ) as mck:
          mck.return_value = (
              StatusType.CRASHED,
              None,
              None,
              {"exitcode": -6},
          )
          msg = "The error suggests that the provided memory limits are too tight."
  
          with pytest.raises(ValueError, match=msg):
              automl._do_dummy_prediction()
  
file_path: auto-sklearn/test/test_automl/test_dummy_predictions.py
imports: from __future__ import annotations
  from typing import Callable, Sequence, Tuple
  from pathlib import Path
  import numpy
  from smac.tae import StatusType
  from autosklearn.automl import AutoML
  from autosklearn.constants import BINARY_CLASSIFICATION, MULTICLASS_CLASSIFICATION, REGRESSION
  from autosklearn.data.xy_data_manager import XYDataManager
  from autosklearn.metrics import Scorer, accuracy, log_loss, precision, r2
  from autosklearn.util.logging_ import PicklableClientLogger
  import pytest
  from pytest_cases import parametrize
  from unittest.mock import patch
label_desc: Use image node_id 3 for calling a global function with example usage: test_crash_due_to_memory_exception(mock_logger, make_sklearn_dataset, make_automl) without return types