code: def quantile(close, length=None, q=None, offset=None, **kwargs):
      """Indicator: Quantile"""
      # Validate Arguments
      length = int(length) if length and length > 0 else 30
      min_periods = (
          int(kwargs["min_periods"])
          if "min_periods" in kwargs
          and kwargs["min_periods"] is not None
          else length
      )
      q = float(q) if q and q > 0 and q < 1 else 0.5
      close = verify_series(close, max(length, min_periods))
      offset = get_offset(offset)
  
      if close is None:
          return
  
      # Calculate Result
      quantile = close.rolling(
          length, min_periods=min_periods
      ).quantile(q)
  
      # Offset
      if offset != 0:
          quantile = quantile.shift(offset)
  
      # Handle fills
      if "fillna" in kwargs:
          quantile.fillna(kwargs["fillna"], inplace=True)
      if "fill_method" in kwargs:
          quantile.fillna(method=kwargs["fill_method"], inplace=True)
  
      # Name & Category
      quantile.name = f"QTL_{length}_{q}"
      quantile.category = "statistics"
  
      return quantile
  
label_desc: Use image node_id 1 for calling a global function with example usage: quantile(close, length, q, offset) and returns: quantile