code: def test_quantile_missing_group_values_no_segfaults():
      # GH 28662
      data = np.array([1.0, np.nan, 1.0])
      df = DataFrame({"key": data, "val": range(3)})
  
      # Random segfaults; would have been guaranteed in loop
      grp = df.groupby("key")
      for _ in range(100):
          grp.quantile()
  
imports: import numpy
  import pytest
  import pandas
  from pandas import DataFrame, Index
  import pandas._testing
label_desc: Use image node_id 9 for calling a global function with example usage: test_quantile_missing_group_values_no_segfaults() without return types