code: def test_balanced_binary():
      y_targ = np.array([0, 0, 0, 1, 1, 1, 1, 1, 1, 0])
      y_pred = np.array([0, 1, 1, 0, 1, 1, 1, 1, 1, 1])
  
      y = accuracy_score(y_targ, y_pred, method="balanced")
      assert_almost_equal(y, 0.542, decimal=3)
  
imports: import numpy
  from numpy.testing import assert_almost_equal
  from mlxtend.evaluate import accuracy_score
label_desc: Use image node_id 4 for calling a global function with example usage: test_balanced_binary() without return types