docstr: Generate order list that will be traded at 'date'.
  
  Parameters
  ----------
  date : str (YYYY-MM-DD)
      Trade date, when the generated order list will be traded.
  path : str
      Path to save user account.
docstr_tok: ["Generate","order","list","that","will","be","traded","at","'date","'",".","Parameters","--","--","--","--","--","date",":","str","(","YYYY-MM-DD",")","Trade","date",",","when","the","generated","order","list","will","be","traded",".","path",":","str","Path","to","save","user","account","."]
code: def generate(self, date, path):
      """Generate order list that will be traded at 'date'.
  
      Parameters
      ----------
      date : str (YYYY-MM-DD)
          Trade date, when the generated order list will be traded.
      path : str
          Path to save user account.
      """
      um, pred_date, trade_date = self.init(self.client, path, date)
      for user_id, user in um.users.items():
          dates, trade_exchange = prepare(um, pred_date, user_id)
          # get and save the score at predict date
          input_data = user.model.get_data_with_date(pred_date)
          score_series = user.model.predict(input_data)
          save_score_series(
              score_series, (pathlib.Path(path) / user_id), trade_date
          )
  
          # update strategy (and model)
          user.strategy.update(score_series, pred_date, trade_date)
  
          # generate and save order list
          order_list = user.strategy.generate_trade_decision(
              score_series=score_series,
              current=user.account.current_position,
              trade_exchange=trade_exchange,
              trade_date=trade_date,
          )
          save_order_list(
              order_list=order_list,
              user_path=(pathlib.Path(path) / user_id),
              trade_date=trade_date,
          )
          self.logger.info(
              "Generate order list at {} for {}".format(
                  trade_date, user_id
              )
          )
          um.save_user_data(user_id)
  
imports: import fire
  import pandas
  import pathlib
  import qlib
  import logging
  from ...data import D
  from ...log import get_module_logger
  from ...utils import get_pre_trading_date, is_tradable_date
  from ..evaluate import risk_analysis
  from ..backtest.backtest import update_account
  from .manager import UserManager
  from .utils import prepare
  from .utils import create_user_folder
  from .executor import load_order_list, save_order_list
  from .executor import SimulatorExecutor
  from .executor import save_score_series, load_score_series
label_desc: Use image node_id 5 for calling the Operator obj's underlying member method code with example usage: obj.generate(date, path) without return types