code: def add(self, action):
      self.memory[self.index] = action
  
file_path: FinRL/finrl/agents/portfolio_optimization/utils.py
imports: from __future__ import annotations
  from collections import deque
  import numpy
  from torch.utils.data.dataset import IterableDataset
label_desc: Use image node_id 4 for calling the PVM obj's underlying member method code with example usage: obj.add(action) without return types