code: def no_warnings(caplog):
      """
      This fixture should be passed to any test function in order to check if any warnings are raised.
      """
  
      caplog.set_level(logging.WARNING)
      yield
      warnings = [
          record
          for record in caplog.get_records("call")
          if record.levelno == logging.WARNING
      ]
      assert not warnings
  
imports: import pytest
  import logging
  import shap
  import spacy
  import numpy
  from sklearn.linear_model import LogisticRegression, LinearRegression
  from sklearn.ensemble import RandomForestClassifier, RandomForestRegressor
  from alibi.explainers import ALE
  from alibi.explainers import AnchorTabular
  from alibi.explainers import KernelShap, TreeShap
  from alibi.explainers.tests.utils import predict_fcn, MockTreeExplainer
  from alibi.tests.utils import MockPredictor
  from alibi.utils.lang_model import BertBaseUncased, DistilbertBaseUncased, RobertaBase
  from alibi.utils.download import spacy_model
  import tensorflow
  import alibi_testing
  from alibi_testing.data import get_adult_data, get_iris_data, get_diabetes_data, get_mnist_data, get_movie_sentiment_data
label_desc: Use image node_id 17 for calling a global function with example usage: no_warnings(caplog) without return types