code: def test_avg_perclass_accuracy():
      y_targ = np.array([0, 0, 0, 1, 1, 1, 1, 1, 2, 2])
      y_pred = np.array([0, 1, 1, 0, 1, 1, 2, 2, 2, 2])
      res = scoring(
          y_target=y_targ,
          y_predicted=y_pred,
          metric="average per-class accuracy",
      )
      assert round(res, 3) == 0.667, res
  
file_path: mlxtend/mlxtend/evaluate/tests/test_scoring.py
imports: import numpy
  from mlxtend.evaluate import scoring
label_desc: Use image node_id 15 for calling a global function with example usage: test_avg_perclass_accuracy() without return types