code: def get_groupable_matrix():
      rt = hl.utils.range_matrix_table(n_rows=100, n_cols=20)
      rt = rt.annotate_globals(foo="foo")
      rt = rt.annotate_rows(
          group1=rt["row_idx"] % 6,
          group2=hl.Struct(a=rt["row_idx"] % 6, b="foo"),
      )
      rt = rt.annotate_cols(
          group3=rt["col_idx"] % 6,
          group4=hl.Struct(a=rt["col_idx"] % 6, b="foo"),
      )
      return rt.annotate_entries(
          c=rt["row_idx"],
          d=rt["col_idx"],
          e="foo",
          f=rt["group1"],
          g=rt["group2"]["a"],
          h=rt["group3"],
          i=rt["group4"]["a"],
      )
  
file_path: hail/hail/python/test/hail/matrixtable/test_grouped_matrix_table.py
imports: import unittest
  import hail
  from ..helpers import *
label_desc: Use image node_id 1 for calling the Tests obj's underlying member method code with example usage: obj.get_groupable_matrix() and returns: rt