code: def accuracy_tp_fp(p0, n0, tp, fp):
      """
      Calculate accuracy using true positive and false positive.
      """
      return (tp + n0 - float(fp)) / (p0 + float(n0))
  
file_path: AIX360/aix360/algorithms/rule_induction/ripper/pruning.py
imports: import numba
  import numpy
  from aix360.algorithms.rule_induction.ripper.binding import _rule_predict, _rule_list_predict
  from aix360.algorithms.rule_induction.ripper.mdl import _mdl
label_desc: Use image node_id 1 for calling a global function with example usage: accuracy_tp_fp(p0, n0, tp, fp) and returns: unknown