code: def accuracy_score(y_true, y_pred):
      """Compare y_true to y_pred and return the accuracy"""
      accuracy = np.sum(y_true == y_pred, axis=0) / len(y_true)
      return accuracy
  
file_path: ML-From-Scratch/mlfromscratch/utils/data_operation.py
imports: from __future__ import division
  import numpy
  import math
  import sys
label_desc: Use image node_id 6 for calling a global function with example usage: accuracy_score(y_true, y_pred) and returns: accuracy