code: def test_logrank_test_is_symmetric():
      data1 = np.random.exponential(5, size=(2000, 1)).astype(int)
      data2 = np.random.exponential(1, size=(2000, 1)).astype(int)
      result1 = stats.logrank_test(data1, data2)
      result2 = stats.logrank_test(data2, data1)
      assert abs(result1.p_value - result2.p_value) < 10e-8
  
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 20 for calling a global function with example usage: test_logrank_test_is_symmetric() without return types