code: def test_adv_debias_grid(new_adult):
      """Test that the new AdversarialDebiasing works in a grid search (and that
      debiasing results in reduced accuracy).
      """
      X, y, _ = new_adult
      adv_deb = AdversarialDebiasing(
          "sex", num_epochs=10, random_state=123
      )
  
      params = {"debias": [True, False]}
  
      clf = GridSearchCV(adv_deb, params, cv=3)
      clf.fit(X, y)
  
      clf.best_estimator_.sess_.close()
      assert clf.best_params_ == {"debias": False}
  
file_path: AIF360/tests/sklearn/test_adversarial_debiasing.py
imports: import numpy
  from sklearn.model_selection import GridSearchCV
  from sklearn.metrics import accuracy_score
  import tensorflow.compat.v1
  from aif360.algorithms.inprocessing import AdversarialDebiasing
  from aif360.sklearn.inprocessing import AdversarialDebiasing
label_desc: Use image node_id 5 for calling a global function with example usage: test_adv_debias_grid(new_adult) without return types