code: def load_data(
      self,
      data_cwd,
      price_ary,
      tech_ary,
      time_frequency,
      start,
      mid1,
      mid2,
      end,
  ):
      if data_cwd is not None:
          try:
              price_ary = np.load(f"{data_cwd}/price_ary.npy")
              tech_ary = np.load(f"{data_cwd}/tech_ary.npy")
          except BaseException:
              raise ValueError("Data files not found!")
      else:
          price_ary = price_ary
          tech_ary = tech_ary
  
      n = price_ary.shape[0]
      if self.mode == "train":
          self.price_ary = price_ary[start:mid1]
          self.tech_ary = tech_ary[start:mid1]
          n = self.price_ary.shape[0]
          x = n // int(time_frequency)
          ind = [int(time_frequency) * i for i in range(x)]
          self.price_ary = self.price_ary[ind]
          self.tech_ary = self.tech_ary[ind]
      elif self.mode == "test":
          self.price_ary = price_ary[mid1:mid2]
          self.tech_ary = tech_ary[mid1:mid2]
          n = self.price_ary.shape[0]
          x = n // int(time_frequency)
          ind = [int(time_frequency) * i for i in range(x)]
          self.price_ary = self.price_ary[ind]
          self.tech_ary = self.tech_ary[ind]
      elif self.mode == "trade":
          self.price_ary = price_ary[mid2:end]
          self.tech_ary = tech_ary[mid2:end]
          n = self.price_ary.shape[0]
          x = n // int(time_frequency)
          ind = [int(time_frequency) * i for i in range(x)]
          self.price_ary = self.price_ary[ind]
          self.tech_ary = self.tech_ary[ind]
      else:
          raise ValueError("Invalid Mode!")
  
file_path: FinRL/finrl/meta/env_cryptocurrency_trading/env_btc_ccxt.py
imports: from __future__ import annotations
  import numpy
label_desc: Use image node_id 5 for calling the BitcoinEnv obj's underlying member method code with example usage: obj.load_data(data_cwd, price_ary, tech_ary, time_frequency, start, mid1, mid2, end) without return types