code: def test_tarone_ware_weighted_logrank_on_leukemia_dataset():
      """
      Test against result from "Survival Analysis: A Self-learning Text" by Kleinbaum & Klein, 3rd edition, 2012.
      """
      data = load_leukemia()
      group_1 = data[data["Rx"] == 0]
      group_2 = data[data["Rx"] == 1]
  
      result = stats.logrank_test(
          group_1["t"],
          group_2["t"],
          group_1["status"],
          group_2["status"],
          weightings="tarone-ware",
      )
  
      assert abs(result.test_statistic - 15.123575) < 10e-6
      assert result.test_name == "Tarone-Ware_test"
  
imports: import numpy
  import pandas
  import numpy.testing
  import pytest
  from pandas.testing import assert_frame_equal
  from lifelines import statistics
  from lifelines import CoxPHFitter, KaplanMeierFitter, WeibullFitter
  from lifelines.exceptions import StatisticalWarning
  from lifelines.datasets import load_waltons, load_g3, load_lymphoma, load_dd, load_regression_dataset, load_leukemia
label_desc: Use image node_id 12 for calling a global function with example usage: test_tarone_ware_weighted_logrank_on_leukemia_dataset() without return types