code: def general_cm_wilson(a, b, digits_of_precision, z_score):
      """
      Computes generalized confusion matrix wilson bounds
      Used for rates of the form: a / (a + b)
  
      This is necessary because the denominators for rates such as
      True Positive Rate need to be out of total positive results
      """
      n = a + b
      return compute_wilson_bounds(
          a / n, n, digits_of_precision, z_score
      )
  
file_path: responsible-ai-toolbox/raiwidgets/raiwidgets/fairness_metric_calculation.py
imports: import importlib
  import numpy
  from packaging import version
  from sklearn.metrics import confusion_matrix
label_desc: Use image node_id 3 for calling a global function with example usage: general_cm_wilson(a, b, digits_of_precision, z_score) and returns: compute_wilson_bounds