code: def test_quantile_multi(self, datetime_series, unit):
      datetime_series.index = datetime_series.index.as_unit(unit)
      qs = [0.1, 0.9]
      result = datetime_series.quantile(qs)
      expected = Series(
          [
              np.percentile(datetime_series.dropna(), 10),
              np.percentile(datetime_series.dropna(), 90),
          ],
          index=qs,
          name=datetime_series.name,
      )
      tm.assert_series_equal(result, expected)
  
      dts = datetime_series.index.to_series()
      dts.name = "xxx"
      result = dts.quantile((0.2, 0.2))
      expected = Series(
          [
              Timestamp("2000-01-10 19:12:00"),
              Timestamp("2000-01-10 19:12:00"),
          ],
          index=[0.2, 0.2],
          name="xxx",
          dtype=f"M8[{unit}]",
      )
      tm.assert_series_equal(result, expected)
  
      result = datetime_series.quantile([])
      expected = Series(
          [],
          name=datetime_series.name,
          index=Index([], dtype=float),
          dtype="float64",
      )
      tm.assert_series_equal(result, expected)
  
imports: import numpy
  import pytest
  from pandas.core.dtypes.common import is_integer
  import pandas
  from pandas import Index, Series
  import pandas._testing
  from pandas.core.indexes.datetimes import Timestamp
label_desc: Use image node_id 2 for calling the TestSeriesQuantile obj's underlying member method code with example usage: obj.test_quantile_multi(datetime_series, unit) without return types