code: def lmm(genotypes_series, phenotypes_series):
      groups = groups_bc.value
      df = pd.concat([genotypes_series, phenotypes_series], axis=1)
      return pd.Series(
          [run_one_lmm(r[0], r[1], groups) for r in df.values]
      )
  
imports: import pyspark.sql.functions
  import pandas
  import statsmodels.api
  import numpy
  from pyspark.sql.types import DoubleType
  import glow
label_desc: Use image node_id 2 for calling a global function with example usage: lmm(genotypes_series, phenotypes_series) and returns: pd