code: def _check_reset_count(model, env: IdentityEnv):
      assert env.num_resets == 0
      _prev_runner = None
      for _ in range(2):
          model.learn(total_timesteps=300)
          # Lazy constructor for Runner fires upon the first call to learn.
          assert env.num_resets == 1
          if _prev_runner is not None:
              assert (
                  _prev_runner is model.runner
              ), "Runner shouldn't change"
          _prev_runner = model.runner
  
imports: import pytest
  from stable_baselines import A2C, ACER, ACKTR, PPO2
  from stable_baselines.common.identity_env import IdentityEnv, IdentityEnvBox
  from stable_baselines.common.vec_env import DummyVecEnv
label_desc: Use image node_id 2 for calling a global function with example usage: _check_reset_count(model, env) without return types