code: def test_pareto_front_corner_cases():
      df = pd.DataFrame(
          dict(
              name=(
                  "top left",
                  "left",
                  "left",
                  "bottom left",
                  "bottom",
                  "bottom",
                  "bottom right",
                  "right",
                  "right",
                  "top right",
                  "top",
                  "top",
                  "inner",
              ),
              x=(0, 0, 0, 0, 0.3, 0.6, 1, 1, 1, 1, 0.7, 0.4, 0.5),
              y=(1, 0.8, 0.2, 0, 0, 0, 0, 0.35, 0.65, 1, 1, 1, 0.5),
          )
      )
  
      tl = h2o.explanation._explain._calculate_pareto_front(
          df["x"].values, df["y"].values, top=True, left=True
      )
      tr = h2o.explanation._explain._calculate_pareto_front(
          df["x"].values, df["y"].values, top=True, left=False
      )
      bl = h2o.explanation._explain._calculate_pareto_front(
          df["x"].values, df["y"].values, top=False, left=True
      )
      br = h2o.explanation._explain._calculate_pareto_front(
          df["x"].values, df["y"].values, top=False, left=False
      )
  
      assert tl.shape == (1,)
      assert tr.shape == (1,)
      assert bl.shape == (1,)
      assert br.shape == (1,)
  
      assert (df.loc[list(tl), "name"] == "top left").all()
      assert (df.loc[list(tr), "name"] == "top right").all()
      assert (df.loc[list(bl), "name"] == "bottom left").all()
      assert (df.loc[list(br), "name"] == "bottom right").all()
  
      df = pd.DataFrame(
          dict(
              name=(
                  "top left",
                  "top left",
                  "bottom left",
                  "bottom left",
                  "bottom left",
                  "bottom right",
                  "bottom right",
                  "bottom right",
                  "top right",
                  "top right",
                  "top right",
                  "top left",
                  "inner",
              ),
              x=(
                  0.1,
                  0,
                  0,
                  0.1,
                  0.3,
                  0.6,
                  0.9,
                  1,
                  1,
                  0.9,
                  0.7,
                  0.4,
                  0.5,
              ),
              y=(
                  0.9,
                  0.8,
                  0.2,
                  0.1,
                  0,
                  0,
                  0.1,
                  0.35,
                  0.65,
                  0.9,
                  1,
                  1,
                  0.5,
              ),
          )
      )
  
      tl = h2o.explanation._explain._calculate_pareto_front(
          df["x"].values, df["y"].values, top=True, left=True
      )
      tr = h2o.explanation._explain._calculate_pareto_front(
          df["x"].values, df["y"].values, top=True, left=False
      )
      bl = h2o.explanation._explain._calculate_pareto_front(
          df["x"].values, df["y"].values, top=False, left=True
      )
      br = h2o.explanation._explain._calculate_pareto_front(
          df["x"].values, df["y"].values, top=False, left=False
      )
  
      assert tl.shape == (3,)
      assert tr.shape == (3,)
      assert bl.shape == (3,)
      assert br.shape == (3,)
  
      assert (df.loc[list(tl), "name"] == "top left").all()
      assert (df.loc[list(tr), "name"] == "top right").all()
      assert (df.loc[list(bl), "name"] == "bottom left").all()
      assert (df.loc[list(br), "name"] == "bottom right").all()
  
imports: import os
  import sys
  import pandas
  from h2o.grid import H2OGridSearch
  import matplotlib
  import h2o
  import pandas
  import matplotlib.pyplot
  from tests import pyunit_utils, test_plot_result_saving
  from h2o.automl import H2OAutoML
  from h2o.estimators import *
  from h2o.explanation._explain import H2OExplanation
label_desc: Use image node_id 17 for calling a global function with example usage: test_pareto_front_corner_cases() without return types