code: def test_classifier_all_variables(df_classification):
      X, y = df_classification
  
      tr = TargetMeanClassifier(bins=2)
      tr.fit(X, y)
  
      pred = tr.predict(X)
      prob = tr.predict_proba(X)
      prob_log = tr.predict_log_proba(X)
  
      exp_pred = np.array(
          [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
      )
      exp_prob = np.array(
          [
              [0.95, 0.05],
              [0.95, 0.05],
              [0.95, 0.05],
              [0.95, 0.05],
              [0.95, 0.05],
              [0.95, 0.05],
              [0.825, 0.175],
              [0.825, 0.175],
              [0.675, 0.325],
              [0.675, 0.325],
              [0.325, 0.675],
              [0.325, 0.675],
              [0.175, 0.825],
              [0.175, 0.825],
              [0.05, 0.95],
              [0.05, 0.95],
              [0.05, 0.95],
              [0.05, 0.95],
              [0.05, 0.95],
              [0.05, 0.95],
          ]
      )
  
      exp_prob_log = np.array(
          [
              [-0.05129329, -2.99573227],
              [-0.05129329, -2.99573227],
              [-0.05129329, -2.99573227],
              [-0.05129329, -2.99573227],
              [-0.05129329, -2.99573227],
              [-0.05129329, -2.99573227],
              [-0.19237189, -1.74296931],
              [-0.19237189, -1.74296931],
              [-0.39304259, -1.1239301],
              [-0.39304259, -1.1239301],
              [-1.1239301, -0.39304259],
              [-1.1239301, -0.39304259],
              [-1.74296931, -0.19237189],
              [-1.74296931, -0.19237189],
              [-2.99573227, -0.05129329],
              [-2.99573227, -0.05129329],
              [-2.99573227, -0.05129329],
              [-2.99573227, -0.05129329],
              [-2.99573227, -0.05129329],
              [-2.99573227, -0.05129329],
          ]
      )
  
      assert np.array_equal(pred, exp_pred)
      assert np.allclose(prob, exp_prob)
      assert np.allclose(prob_log, exp_prob_log)
  
imports: import numpy
  import pandas
  from feature_engine._prediction.target_mean_classifier import TargetMeanClassifier
label_desc: Use image node_id 4 for calling a global function with example usage: test_classifier_all_variables(df_classification) without return types