code: def test_missing_spark(spark, rg):
      num_samples = 10
      genotype_df = pd.DataFrame(rg.random((num_samples, 1)))
      phenotype_df = pd.DataFrame(rg.random((num_samples, 3)))
      phenotype_df.loc[0, 0] = np.nan
      phenotype_df.loc[[1, 3, 5], 1] = np.nan
      covariate_df = pd.DataFrame(rg.random((num_samples, 3)))
      glow = run_linear_regression_spark(
          spark, genotype_df, phenotype_df, covariate_df
      )
      baseline = statsmodels_baseline(
          genotype_df, phenotype_df, covariate_df
      )
      assert regression_results_equal(glow, 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 13 for calling a global function with example usage: test_missing_spark(spark, rg) without return types