code: def pvr(close, volume):
      """Indicator: Price Volume Rank"""
      # Validate arguments
      close = verify_series(close)
      volume = verify_series(volume)
  
      # Calculate Result
      close_diff = close.diff().fillna(0)
      volume_diff = volume.diff().fillna(0)
      pvr_ = Series(npNaN, index=close.index)
      pvr_.loc[(close_diff >= 0) & (volume_diff >= 0)] = 1
      pvr_.loc[(close_diff >= 0) & (volume_diff < 0)] = 2
      pvr_.loc[(close_diff < 0) & (volume_diff >= 0)] = 3
      pvr_.loc[(close_diff < 0) & (volume_diff < 0)] = 4
  
      # Name and Categorize it
      pvr_.name = f"PVR"
      pvr_.category = "volume"
  
      return pvr_
  
label_desc: Use image node_id 1 for calling a global function with example usage: pvr(close, volume) and returns: pvr_