code: def get_expected_output_frame(
      out_doc_ids, out_tokens, out_TFs, out_IDFs, out_TFIDFs
  ):
      return H2OFrame(
          OrderedDict(
              [
                  ("DocID", out_doc_ids),
                  ("Token", out_tokens),
                  ("TF", out_TFs),
                  ("IDF", out_IDFs),
                  ("TF_IDF", out_TFIDFs),
              ]
          ),
          column_types=[
              "numeric",
              "string",
              "numeric",
              "numeric",
              "numeric",
          ],
      )
  
file_path: h2o-3/h2o-py/tests/testdir_algos/tf-idf/pyunit_PUBDEV-6938_tf-idf.py
imports: from collections import OrderedDict
  from h2o import H2OFrame
  from h2o.information_retrieval.tf_idf import tf_idf
  from tests import pyunit_utils
label_desc: Use image node_id 6 for calling a global function with example usage: get_expected_output_frame(out_doc_ids, out_tokens, out_TFs, out_IDFs, out_TFIDFs) and returns: H2OFrame