code: def test_gets_formatted_actions_and_observations():
      gym_env = gym.make("CartPole-v0")
      gym_obs = gym_env.reset()
      gym_act = gym_env.action_space.sample()
  
      wrapped_env = GymMazeEnv(env="CartPole-v0")
      wrapped_env.seed(1234)
      assert not wrapped_env.is_actor_done()
      assert wrapped_env.actor_id() == (0, 0)
      obs_dict, act_dict = wrapped_env.get_observation_and_action_dicts(
          gym_obs, gym_act, False
      )
      assert np.all(
          gym_obs.astype(np.float32) == obs_dict[0]["observation"]
      )
      assert np.all(gym_act == act_dict[0]["action"])
      wrapped_env.close()
  
file_path: maze/maze/test/core/wrappers/test_maze_gym_env_wrapper.py
imports: import gym
  import numpy
  import pytest
  from maze.core.agent.dummy_cartpole_policy import DummyCartPolePolicy
  from maze.core.agent.random_policy import RandomPolicy
  from maze.core.wrappers.maze_gym_env_wrapper import GymMazeEnv
  from maze.test.shared_test_utils.test_seeding import perform_seeding_test
  from maze.test.shared_test_utils.wrappers import assert_wrapper_clone_from
label_desc: Use image node_id 3 for calling a global function with example usage: test_gets_formatted_actions_and_observations() without return types