code: def random_phenotypes(shape, rg):
      return rg.integers(low=0, high=2, size=shape).astype(np.float64)
  
imports: from pyspark.sql.types import ArrayType, DoubleType
  import glow.gwas.log_reg
  import glow.gwas.functions
  import statsmodels.api
  import pandas
  import numpy
  import pytest
label_desc: Use image node_id 6 for calling a global function with example usage: random_phenotypes(shape, rg) and returns: rg