code: def test_interpreter() -> None:
      NUM_EXECUTION = 3
      order = get_order()
      simulator = get_simulator(order)
      interpreter_action = CategoricalActionInterpreter(
          values=NUM_EXECUTION
      )
  
      NUM_STEPS = 7
      state = simulator.get_state()
      position_history = []
      for i in range(NUM_STEPS):
          simulator.step(interpreter_action(state, 1))
          state = simulator.get_state()
          position_history.append(state.position)
  
          assert position_history[-1] == max(
              TOTAL_POSITION - TOTAL_POSITION / NUM_EXECUTION * (i + 1),
              0.0,
          )
  
file_path: qlib/tests/rl/test_qlib_simulator.py
imports: import sys
  from pathlib import Path
  from typing import Tuple
  import pandas
  import pytest
  from qlib.backtest.decision import Order, OrderDir
  from qlib.backtest.executor import SimulatorExecutor
  from qlib.rl.order_execution import CategoricalActionInterpreter
  from qlib.rl.order_execution.simulator_qlib import SingleAssetOrderExecution
label_desc: Use image node_id 7 for calling a global function with example usage: test_interpreter() without return types