code: def rvgi(
      open_,
      high,
      low,
      close,
      length=None,
      swma_length=None,
      offset=None,
      **kwargs,
  ):
      """Indicator: Relative Vigor Index (RVGI)"""
      # Validate Arguments
      high_low_range = non_zero_range(high, low)
      close_open_range = non_zero_range(close, open_)
      length = int(length) if length and length > 0 else 14
      swma_length = (
          int(swma_length) if swma_length and swma_length > 0 else 4
      )
      _length = max(length, swma_length)
      open_ = verify_series(open_, _length)
      high = verify_series(high, _length)
      low = verify_series(low, _length)
      close = verify_series(close, _length)
      offset = get_offset(offset)
  
      if open_ is None or high is None or low is None or close is None:
          return
  
      # Calculate Result
      numerator = (
          swma(close_open_range, length=swma_length)
          .rolling(length)
          .sum()
      )
      denominator = (
          swma(high_low_range, length=swma_length).rolling(length).sum()
      )
  
      rvgi = numerator / denominator
      signal = swma(rvgi, length=swma_length)
  
      # Offset
      if offset != 0:
          rvgi = rvgi.shift(offset)
          signal = signal.shift(offset)
  
      # Handle fills
      if "fillna" in kwargs:
          rvgi.fillna(kwargs["fillna"], inplace=True)
          signal.fillna(kwargs["fillna"], inplace=True)
      if "fill_method" in kwargs:
          rvgi.fillna(method=kwargs["fill_method"], inplace=True)
          signal.fillna(method=kwargs["fill_method"], inplace=True)
  
      # Name & Category
      rvgi.name = f"RVGI_{length}_{swma_length}"
      signal.name = f"RVGIs_{length}_{swma_length}"
      rvgi.category = signal.category = "momentum"
  
      # Prepare DataFrame to return
      df = DataFrame({rvgi.name: rvgi, signal.name: signal})
      df.name = f"RVGI_{length}_{swma_length}"
      df.category = rvgi.category
  
      return df
  
label_desc: Use image node_id 1 for calling a global function with example usage: rvgi(open_, high, low, close, length, swma_length, offset) and returns: df