code: def test_step_increment_in_single_step_core_env():
      """In single sub-step envs, events should be cleared out and env time incremented automatically."""
      env = build_dummy_maze_env()
      env = LogStatsWrapper.wrap(env)
  
      env.reset()
      assert env.get_env_time() == 0
  
      # 10 steps
      for _ in range(10):
          env.step(env.action_space.sample())
  
      assert env.get_env_time() == 10
      env.reset()
  
      increment_log_step()
  
      assert (
          env.get_stats_value(
              BaseEnvEvents.reward,
              LogStatsLevel.EPOCH,
              name="total_step_count",
          )
          == 10
      )
  
imports: from maze.core.env.base_env_events import BaseEnvEvents
  from maze.core.log_stats.log_stats import increment_log_step, LogStatsLevel
  from maze.core.wrappers.log_stats_wrapper import LogStatsWrapper
  from maze.test.shared_test_utils.helper_functions import build_dummy_maze_env_with_structured_core_env, build_dummy_maze_env
label_desc: Use image node_id 1 for calling a global function with example usage: test_step_increment_in_single_step_core_env() without return types