code: def test_simple_offset_out_of_order(spark, rg):
      num_samples = 25
      num_pheno = 6
      num_geno = 10
      samples = [f"sample_{i}" for i in range(0, num_samples)]
      traits = [f"trait_{i}" for i in range(0, num_pheno)]
      genos = [f"snp_{i}" for i in range(0, num_geno)]
      genotype_df = pd.DataFrame(
          rg.random((num_samples, num_geno)), samples, genos
      )
      phenotype_df = pd.DataFrame(
          rg.random((num_samples, num_pheno)), samples, traits
      )
      covariate_df = pd.DataFrame(rg.random((num_samples, 2)))
      offset_df = pd.DataFrame(
          rg.random((num_samples, num_pheno)), samples, traits
      )
      results = run_linear_regression_spark(
          spark,
          genotype_df,
          phenotype_df,
          covariate_df,
          offset_df=offset_df.sample(frac=1),
      )
      baseline = statsmodels_baseline(
          genotype_df,
          phenotype_df,
          covariate_df,
          [offset_df] * num_geno,
      )
      assert regression_results_equal(results, baseline)
  
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 24 for calling a global function with example usage: test_simple_offset_out_of_order(spark, rg) without return types