code: def _generate_skat_big_matrix():
      import numpy as np
  
      data = (np.random.random((2000, 100)) > 0.8) + 1.0 * (
          np.random.random((2000, 100)) > 0.8
      )
      with open(resource("skat_genotype_matrix.csv"), "w") as f:
          for y in data:
              f.write(",".join([str(int(x)) for x in y]) + "\n")
  
      mt = hl.import_matrix_table(
          resource("skat_genotype_matrix.csv"),
          delimiter=",",
          no_header=True,
      )
      bm = hl.linalg.BlockMatrix.from_entry_expr(mt.x)
      bm = bm.T
      mt = bm.to_matrix_table_row_major()
      mt = mt.annotate_entries(element=hl.int(mt.element))
      mt.element.export(
          "skat_genotype_matrix_variants_are_rows.csv", delimiter=","
      )
  
      phenos = (data.sum(1) - 50) + np.random.normal(0, 10, 2000)
      with open(resource("skat_phenotypes.csv"), "w") as f:
          for y in phenos:
              f.write(str(y) + "\n")
  
imports: import hail
  import pytest
  from hail.utils import FatalError, HailUserError
  from ..helpers import resource, test_timeout, qobtest
label_desc: Use image node_id 8 for calling a global function with example usage: _generate_skat_big_matrix() without return types