code: def test_groupby_timedelta_quantile():
      # GH: 29485
      df = DataFrame(
          {
              "value": pd.to_timedelta(np.arange(4), unit="s"),
              "group": [1, 1, 2, 2],
          }
      )
      result = df.groupby("group").quantile(0.99)
      expected = DataFrame(
          {
              "value": [
                  pd.Timedelta("0 days 00:00:00.990000"),
                  pd.Timedelta("0 days 00:00:02.990000"),
              ]
          },
          index=Index([1, 2], name="group"),
      )
      tm.assert_frame_equal(result, expected)
  
imports: import numpy
  import pytest
  import pandas
  from pandas import DataFrame, Index
  import pandas._testing
label_desc: Use image node_id 18 for calling a global function with example usage: test_groupby_timedelta_quantile() without return types