code: def test_gridsearch_sorting_metrics():
      """
      Create and instantiate class and perform tests specified for random forest
  
      :return: None
      """
      test_rf_grid = Test_rf_gridsearch_sorting_metrics()
      test_rf_grid.test_rf_gridsearch_sorting_metrics()
  
      sys.stdout.flush()
  
      if (
          test_rf_grid.test_failed
      ):  # exit with error if any tests have failed
          sys.exit(1)
  
file_path: h2o-3/h2o-py/dynamic_tests/testdir_algos/rf/pyunit_rf_gridsearch_sorting_metrics.py
imports: import sys
  import random
  import os
  from builtins import range
  import time
  import json
  import h2o
  from tests import pyunit_utils
  from h2o.estimators.random_forest import H2ORandomForestEstimator
  from h2o.grid.grid_search import H2OGridSearch
label_desc: Use image node_id 1 for calling a global function with example usage: test_gridsearch_sorting_metrics() without return types