code: def test_automatic_reset_after_done_not_using_reset_directly(self):
      cartpole_env = gym.spec("CartPole-v1").make()
      env = gym_wrapper.GymnasiumWrapper(cartpole_env)
      time_step = env.step(1)  # pytype: disable=wrong-arg-types
  
      while not time_step.is_last():
          time_step = env.step(np.array(1, dtype=np.int32))
  
      self.assertTrue(time_step.is_last())
      first_time_step = env.step(0)  # pytype: disable=wrong-arg-types
      self.assertTrue(first_time_step.is_first())
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import math
  from absl.testing.absltest import mock
  import gymnasium
  import numpy
  from tf_agents.environments import gymnasium_wrapper
  from tf_agents.utils import test_utils
label_desc: Use image node_id 8 for calling the GymnasiumWrapperOnCartpoleTest obj's underlying member method code with example usage: obj.test_automatic_reset_after_done_not_using_reset_directly() without return types