code: def _percentage_match(labels, predictions):
      match_count = 0
      for idx, lbl in enumerate(labels):
          if np.argmax(lbl) == np.argmax(predictions[idx]):
              match_count += 1
      return match_count / len(labels) * 100 if len(labels) != 0 else 0
  
file_path: CNTK/bindings/python/cntk/contrib/netopt/test/factorization_test.py
imports: import numpy
  import pytest
  import cntk
  import cntk.contrib.netopt.factorization
label_desc: Use image node_id 8 for calling a global function with example usage: _percentage_match(labels, predictions) and returns: unknown