code: def pwma(close, length=None, asc=None, offset=None, **kwargs):
      """Indicator: Pascals Weighted Moving Average (PWMA)"""
      # Validate Arguments
      length = int(length) if length and length > 0 else 10
      asc = asc if asc else True
      close = verify_series(close, length)
      offset = get_offset(offset)
  
      if close is None:
          return
  
      # Calculate Result
      triangle = pascals_triangle(n=length - 1, weighted=True)
      pwma = close.rolling(length, min_periods=length).apply(
          weights(triangle), raw=True
      )
  
      # Offset
      if offset != 0:
          pwma = pwma.shift(offset)
  
      # Handle fills
      if "fillna" in kwargs:
          pwma.fillna(kwargs["fillna"], inplace=True)
      if "fill_method" in kwargs:
          pwma.fillna(method=kwargs["fill_method"], inplace=True)
  
      # Name & Category
      pwma.name = f"PWMA_{length}"
      pwma.category = "overlap"
  
      return pwma
  
label_desc: Use image node_id 1 for calling a global function with example usage: pwma(close, length, asc, offset) and returns: pwma