code: def test_outputs_to_stdout_if_no_logger() -> None:
      """
      Expects
      -------
      * With no logger, any warning emitted by a model goes to standard out
      """
      with warnings.catch_warnings(record=True) as w:
          _model_predict(
              model=WarningModel(),
              X=np.eye(5),
              task=REGRESSION,
              logger=None,
          )
  
      assert len(w) == 1, "One warning sould have been emmited"
  
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 4 for calling a global function with example usage: test_outputs_to_stdout_if_no_logger() without return types