code: def stratified_split():
      fr = h2o.import_file(
          pyunit_utils.locate("bigdata/laptop/covtype/covtype.data")
      )
      stratified = fr[54].stratified_split()
      train = fr[stratified == "train"]
      test = fr[stratified == "test"]
      print(
          (
              old_div(
                  fr[54].table()["Count"], fr[54].table()["Count"].sum()
              )
          ).show()
      )
      print(
          (
              old_div(
                  train[54].table()["Count"],
                  train[54].table()["Count"].sum(),
              )
          ).show()
      )
      print(
          (
              old_div(
                  test[54].table()["Count"],
                  test[54].table()["Count"].sum(),
              )
          ).show()
      )
  
imports: from past.utils import old_div
  import sys
  import h2o
  from tests import pyunit_utils
label_desc: Use image node_id 1 for calling a global function with example usage: stratified_split() without return types