code: def test_obs_dtype(self):
      cartpole_env = gym.spec("CartPole-v1").make()
      cartpole_env.render = mock.MagicMock()
      env = gym_wrapper.GymnasiumWrapper(cartpole_env)
      time_step = env.reset()
      self.assertEqual(
          env.observation_spec().dtype, time_step.observation.dtype
      )
  
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 10 for calling the GymnasiumWrapperOnCartpoleTest obj's underlying member method code with example usage: obj.test_obs_dtype() without return types