code: def uncollect_if_test_sampler(**kwargs):
      """
      Make sure only tests operating on the same dataset are run.
      """
      clf_dataset_name = kwargs["rf_classifier"].name.split("_")[
          0
      ]  # "adult_data" -> "adult"
      exp_dataset_name = kwargs["explainer"].name.split("_")[
          1
      ]  # "at_adult_explainer" -> "adult"
      dataset_name = kwargs["dataset"].name.split("_")[
          0
      ]  # "adult_data" -> "adult"
  
      conditions = [
          len({clf_dataset_name, exp_dataset_name, dataset_name}) != 1,
      ]
  
      return any(conditions)
  
file_path: alibi/alibi/explainers/tests/test_anchor_tabular.py
imports: from collections import OrderedDict, defaultdict
  from copy import deepcopy
  import numpy
  import pytest
  from pytest_lazyfixture import lazy_fixture
  from alibi.api.defaults import DEFAULT_META_ANCHOR, DEFAULT_DATA_ANCHOR
  from alibi.exceptions import NotFittedError, PredictorCallError, PredictorReturnTypeError
  from alibi.explainers import AnchorTabular, DistributedAnchorTabular
  from alibi.explainers.tests.utils import predict_fcn
label_desc: Use image node_id 3 for calling a global function with example usage: uncollect_if_test_sampler() and returns: any