code: def test_dummy_struct_env():
      """
      Unit test for the DummyStructuredEnvironment
      """
      maze_env = build_dummy_maze_env()
      env = DummyStructuredEnvironment(maze_env)
      env.reset()
  
      # check observation space
      assert isinstance(env.observation_space, spaces.Dict)
  
      for i in range(10):
          action = env.action_spaces_dict[env.actor_id()[0]].sample()
          observation, _, _, _ = env.step(action)
  
      env.close()
  
imports: from gym import spaces
  from maze.test.shared_test_utils.dummy_env.dummy_struct_env import DummyStructuredEnvironment
  from maze.test.shared_test_utils.helper_functions import build_dummy_maze_env, build_dummy_maze_env_with_structured_core_env
label_desc: Use image node_id 2 for calling a global function with example usage: test_dummy_struct_env() without return types