code: def test_quantile_array():
      # https://github.com/pandas-dev/pandas/issues/27526
      df = DataFrame({"A": [0, 1, 2, 3, 4]})
      key = np.array([0, 0, 1, 1, 1], dtype=np.int64)
      result = df.groupby(key).quantile([0.25])
  
      index = pd.MultiIndex.from_product([[0, 1], [0.25]])
      expected = DataFrame({"A": [0.25, 2.50]}, index=index)
      tm.assert_frame_equal(result, expected)
  
      df = DataFrame({"A": [0, 1, 2, 3], "B": [4, 5, 6, 7]})
      index = pd.MultiIndex.from_product([[0, 1], [0.25, 0.75]])
  
      key = np.array([0, 0, 1, 1], dtype=np.int64)
      result = df.groupby(key).quantile([0.25, 0.75])
      expected = DataFrame(
          {
              "A": [0.25, 0.75, 2.25, 2.75],
              "B": [4.25, 4.75, 6.25, 6.75],
          },
          index=index,
      )
      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 2 for calling a global function with example usage: test_quantile_array() without return types