code: def test_highlight_minmax_ext(df, f, kwargs):
      expected = {(2, 0): [("background-color", "red")]}
      if f == "highlight_min":
          df = -df
      result = getattr(df.style, f)(**kwargs)._compute().ctx
      assert result == expected
  
file_path: pandas/pandas/tests/io/formats/style/test_highlight.py
imports: import numpy
  import pytest
  from pandas import NA, DataFrame, IndexSlice
  from pandas.io.formats.style import Styler
label_desc: Use image node_id 6 for calling a global function with example usage: test_highlight_minmax_ext(df, f, kwargs) without return types