code: def disable_tf2():
      """
      Fixture for disabling TF2.x functionality for test functions which
      rely on TF1.x style code (Counterfactual, CEM, CounterfactualProto).
  
      Because of restrictions in TF, the teardown does not contain code
      to enable v2 behaviour back. Instead, we need to run two sets of
      tests - one with marker "tf1" and another with marker "not tf1".
      """
      tf.compat.v1.disable_v2_behavior()
      yield
  
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 21 for calling a global function with example usage: disable_tf2() without return types