code: def print_compute_accuracy_score(
      question,
      correct,
      num_qs,
      total_accuracy,
      semantic_accuracy,
      syntactic_accuracy,
  ):
      print(
          (
              "{0:>30}: ACCURACY TOP1: {3:.2f} %  ({1} / {2})\t  Total accuracy: {4:.2f} %   Semantic accuracy: {5:.2f} %   Syntactic accuracy: {6:.2f} %"
          ).format(
              question,
              correct,
              num_qs,
              correct / float(num_qs) * 100 if num_qs > 0 else 0,
              total_accuracy * 100,
              semantic_accuracy * 100,
              syntactic_accuracy * 100,
          )
      )
  
file_path: fastText/python/doc/examples/compute_accuracy.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  from __future__ import division, absolute_import, print_function
  from fasttext import load_model
  from fasttext import util
  import argparse
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: print_compute_accuracy_score(question, correct, num_qs, total_accuracy, semantic_accuracy, syntactic_accuracy) without return types