code: def reset(
      self,
      *,
      seed=None,
      options=None,
  ):
      self.day = 0
      price = self.price_ary[self.day]
  
      if self.if_train:
          self.stocks = (
              self.initial_stocks
              + rd.randint(0, 64, size=self.initial_stocks.shape)
          ).astype(np.float32)
          self.stocks_cool_down = np.zeros_like(self.stocks)
          self.amount = (
              self.initial_capital * rd.uniform(0.95, 1.05)
              - (self.stocks * price).sum()
          )
      else:
          self.stocks = self.initial_stocks.astype(np.float32)
          self.stocks_cool_down = np.zeros_like(self.stocks)
          self.amount = self.initial_capital
  
      self.total_asset = self.amount + (self.stocks * price).sum()
      self.initial_total_asset = self.total_asset
      self.gamma_reward = 0.0
      return self.get_state(price), {}
  
file_path: FinRL/finrl/meta/env_stock_trading/env_stocktrading_np.py
imports: from __future__ import annotations
  import gymnasium
  import numpy
  from numpy import random
label_desc: Use image node_id 2 for calling the StockTradingEnv obj's underlying member method code with example usage: obj.reset() and returns: self,  dict