code: def __get_parity_result_variable(row, metric, fairness_threshold):
      """Creates parity test result variable for each provided row, separating the Reference group from the passing ones."""
      if row["attribute_value"] == row["ref_group_value"]:
          return "Reference"
      elif (
          abs(row[f"{metric}_disparity_scaled"])
          < fairness_threshold - 1
      ):
          return "Pass"
      else:
          return "Fail"
  
imports: import altair
  import pandas
  from aequitas.plot.commons.helpers import no_axis, transform_ratio, format_number, get_chart_metadata
  from aequitas.plot.commons.tooltips import get_tooltip_text_group_size, get_tooltip_text_disparity_explanation, get_tooltip_text_parity_test_explanation
  from aequitas.plot.commons.style.classes import Title, Subtitle, Parity_Result, Annotation, Legend
  from aequitas.plot.commons.style.text import FONT
  from aequitas.plot.commons.style.sizes import Summary_Chart
  from aequitas.plot.commons import initializers
  from aequitas.plot.commons import validators
  from aequitas.plot.commons import labels
label_desc: Use image node_id 5 for calling a global function with example usage: __get_parity_result_variable(row, metric, fairness_threshold) and returns: str, str, str