code: def _get_quantile_function(q: float) -> Callable:
      """Returns a function with name "q" that computes the q'th quantile of a pandas.Series."""
  
      def quantile_fn(x: pd.Series) -> pd.Series:
          return x.quantile(q)
  
      quantile_fn.__name__ = str(q)
      return quantile_fn
  
file_path: autogluon/timeseries/src/autogluon/timeseries/models/local/naive.py
imports: from typing import Callable
  import numpy
  import pandas
  from autogluon.timeseries.models.local.abstract_local_model import AbstractLocalModel, seasonal_naive_forecast
label_desc: Use image node_id 1 for calling a global function with example usage: _get_quantile_function(q) and returns: quantile_fn, x