code: def test_multiclass_binary():
      y_targ = [0, 0, 0, 1, 1, 1, 2, 2, 2]
      y_pred = [1, 0, 0, 0, 1, 2, 0, 2, 2]
  
      y_1 = accuracy_score(y_targ, y_pred, method="binary", pos_label=1)
      y_2 = accuracy_score(y_targ, y_pred, method="binary", pos_label=2)
      y_3 = accuracy_score(
          y_targ, y_pred, method="binary", pos_label=1, normalize=False
      )
  
      assert_almost_equal(y_2, float(7) / 9, decimal=4)
      assert_almost_equal(y_1, float(6) / 9, decimal=4)
      assert y_3 == 6
  
imports: import numpy
  from numpy.testing import assert_almost_equal
  from mlxtend.evaluate import accuracy_score
label_desc: Use image node_id 1 for calling a global function with example usage: test_multiclass_binary() without return types