code: def test_relevel_by_freq_topn():
      prostate_cat = h2o.import_file(
          path=pyunit_utils.locate(
              "smalldata/prostate/prostate_cat.csv"
          )
      )
  
      dpros_levels_ordered = (
          prostate_cat["DPROS"]
          .table()
          .as_data_frame()["DPROS"]
          .tolist()
      )
      assert dpros_levels_ordered == ["Both", "Left", "None", "Right"]
  
      prostate_cat_relevel = prostate_cat.relevel_by_frequency(top_n=1)
  
      dpros_relevel_levels = (
          prostate_cat_relevel["DPROS"]
          .table()
          .as_data_frame()["DPROS"]
          .tolist()
      )
      assert dpros_relevel_levels == ["Left", "Both", "None", "Right"]
  
      top_drops_level = (
          prostate_cat["DPROS"]
          .table()
          .as_data_frame()
          .sort_values(by="Count")["DPROS"]
          .tolist()[-1]
      )
      prostate_cat_relevel_manual = prostate_cat["DPROS"].relevel(
          y=top_drops_level
      )
      assert prostate_cat_relevel_manual.levels() == [
          dpros_relevel_levels
      ]
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_relevel_by_freq_topn() without return types