code: def _get_multi_level_executor_config(
      strategy_config: dict,
      cash_limit: float | None = None,
      generate_report: bool = False,
      data_granularity: str = "1min",
  ) -> dict:
      executor_config = {
          "class": "SimulatorExecutor",
          "module_path": "qlib.backtest.executor",
          "kwargs": {
              "time_per_step": data_granularity,
              "verbose": False,
              "trade_type": SimulatorExecutor.TT_PARAL
              if cash_limit is not None
              else SimulatorExecutor.TT_SERIAL,
              "generate_report": generate_report,
              "track_data": True,
          },
      }
  
      freqs = list(strategy_config.keys())
      freqs.sort(key=pd.Timedelta)
      for freq in freqs:
          executor_config = {
              "class": "NestedExecutor",
              "module_path": "qlib.backtest.executor",
              "kwargs": {
                  "time_per_step": freq,
                  "inner_strategy": strategy_config[freq],
                  "inner_executor": executor_config,
                  "track_data": True,
              },
          }
  
      return executor_config
  
imports: from __future__ import annotations
  import argparse
  import copy
  import os
  import pickle
  from collections import defaultdict
  from pathlib import Path
  from typing import Dict, List, Optional, Tuple, Union, cast
  import numpy
  import pandas
  import torch
  from joblib import Parallel, delayed
  from qlib.backtest import INDICATOR_METRIC, collect_data_loop, get_strategy_executor
  from qlib.backtest.decision import BaseTradeDecision, Order, OrderDir, TradeRangeByTime
  from qlib.backtest.executor import SimulatorExecutor
  from qlib.backtest.high_performance_ds import BaseOrderIndicator
  from qlib.rl.contrib.naive_config_parser import get_backtest_config_fromfile
  from qlib.rl.contrib.utils import read_order_file
  from qlib.rl.data.integration import init_qlib
  from qlib.rl.order_execution.simulator_qlib import SingleAssetOrderExecution
  from qlib.typehint import Literal
label_desc: Use image node_id 1 for calling a global function with example usage: _get_multi_level_executor_config(strategy_config, cash_limit, generate_report, data_granularity) and returns: executor_config