code: def test_outputs_warnings_to_logs(
      mock_logger: PicklableClientLogger,
  ) -> None:
      """
      Fixtures
      --------
      mock_logger : PicklableClientLogger
          A mock logger that can be queried for call counts
  
      Expects
      -------
      * Any warning emitted by a model should be redirected to the logger
      """
      _model_predict(
          model=WarningModel(),
          X=np.eye(5),
          task=REGRESSION,
          logger=mock_logger,
      )
  
      assert mock_logger.warning.call_count == 1
  
file_path: auto-sklearn/test/test_automl/test_model_predict.py
imports: from typing import Callable, Dict, Tuple
  import warnings
  import numpy
  from sklearn.ensemble import VotingClassifier, VotingRegressor
  from autosklearn.automl import _model_predict
  from autosklearn.constants import BINARY_CLASSIFICATION, MULTICLASS_CLASSIFICATION, MULTILABEL_CLASSIFICATION, MULTIOUTPUT_REGRESSION, REGRESSION
  from autosklearn.util.logging_ import PicklableClientLogger
  from pytest_cases import parametrize
label_desc: Use image node_id 3 for calling a global function with example usage: test_outputs_warnings_to_logs(mock_logger) without return types