code: def test_max_inat_not_all_na():
      # GH#40767 dont interpret iNaT as NaN
  
      # make sure we dont round iNaT+1 to iNaT
      ser = Series([1, iNaT, 2, iNaT + 1])
      gb = ser.groupby([1, 2, 3, 3])
      result = gb.min(min_count=2)
  
      # Note: in converting to float64, the iNaT + 1 maps to iNaT, i.e. is lossy
      expected = Series({1: np.nan, 2: np.nan, 3: iNaT + 1})
      expected.index = expected.index.astype(int)
      tm.assert_series_equal(result, expected, check_exact=True)
  
imports: import builtins
  import datetime
  from string import ascii_lowercase
  import numpy
  import pytest
  from pandas._libs.tslibs import iNaT
  import pandas
  from pandas import DataFrame, MultiIndex, Series, Timestamp, date_range, isna
  import pandas._testing
  from pandas.util import _test_decorators
label_desc: Use image node_id 22 for calling a global function with example usage: test_max_inat_not_all_na() without return types