code: def vwma(close, volume, length=None, offset=None, **kwargs):
      """Indicator: Volume Weighted Moving Average (VWMA)"""
      # Validate Arguments
      length = int(length) if length and length > 0 else 10
      close = verify_series(close, length)
      volume = verify_series(volume, length)
      offset = get_offset(offset)
  
      if close is None or volume is None:
          return
  
      # Calculate Result
      pv = close * volume
      vwma = sma(close=pv, length=length) / sma(
          close=volume, length=length
      )
  
      # Offset
      if offset != 0:
          vwma = vwma.shift(offset)
  
      # Handle fills
      if "fillna" in kwargs:
          vwma.fillna(kwargs["fillna"], inplace=True)
      if "fill_method" in kwargs:
          vwma.fillna(method=kwargs["fill_method"], inplace=True)
  
      # Name & Category
      vwma.name = f"VWMA_{length}"
      vwma.category = "overlap"
  
      return vwma
  
label_desc: Use image node_id 1 for calling a global function with example usage: vwma(close, volume, length, offset) and returns: vwma