code: def __draw_parity_result_text(parity_result, color_scale):
      """Draws the uppercased text result of the provided parity test (Pass, Fail or Reference),
      color-coded according to the provided Altair scale."""
  
      return (
          alt.Chart(
              pd.DataFrame({"parity_result": parity_result}, index=[0])
          )
          .transform_calculate(y_position="1")
          .mark_text(
              align="center",
              baseline="middle",
              font=FONT,
              size=Parity_Result.font_size,
              fontWeight=Parity_Result.font_weight,
          )
          .encode(
              alt.Y(
                  "y_position:Q",
                  scale=alt.Scale(domain=[3, 1]),
                  axis=no_axis(),
              ),
              alt.Color(
                  "parity_result:O",
                  scale=color_scale,
                  legend=alt.Legend(
                      title=Label.TEST,
                      padding=Legend.margin,
                      offset=0,
                  ),
              ),
              text=alt.value(parity_result.upper()),
          )
      )
  
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 6 for calling a global function with example usage: __draw_parity_result_text(parity_result, color_scale) and returns: alt