code: def regression_results_equal(df1, df2, rtol=1e-5):
      df1 = df1.sort_values("phenotype", kind="mergesort")
      df2 = df2.sort_values("phenotype", kind="mergesort")
  
      strings_equal = np.array_equal(
          df1.phenotype.array, df2.phenotype.array
      )
      numerics_equal = np.allclose(
          df1.select_dtypes(exclude=["object"]),
          df2.select_dtypes(exclude=["object"]),
          rtol=rtol,
      )
      return strings_equal and numerics_equal
  
imports: import functions
  import numpy
  import statsmodels.api
  import pandas
  import glow.gwas.functions
  import glow.gwas.lin_reg
  import pytest
label_desc: Use image node_id 5 for calling a global function with example usage: regression_results_equal(df1, df2, rtol) and returns: unknown