code: def test_rank_min_int():
      # GH-32859
      df = DataFrame(
          {
              "grp": [1, 1, 2],
              "int_col": [
                  np.iinfo(np.int64).min,
                  np.iinfo(np.int64).max,
                  np.iinfo(np.int64).min,
              ],
              "datetimelike": [NaT, datetime(2001, 1, 1), NaT],
          }
      )
  
      result = df.groupby("grp").rank()
      expected = DataFrame(
          {
              "int_col": [1.0, 2.0, 1.0],
              "datetimelike": [np.nan, 1.0, np.nan],
          }
      )
  
      tm.assert_frame_equal(result, expected)
  
imports: from datetime import datetime
  import numpy
  import pytest
  import pandas
  from pandas import DataFrame, NaT, Series, concat
  import pandas._testing
label_desc: Use image node_id 12 for calling a global function with example usage: test_rank_min_int() without return types