code: def test_doubleoseven_observations() -> None:
      game = envs.DoubleOSeven()
      game.reset()
      obs = game.step({"player_0": 0, "player_1": 1})[
          0
      ]  # p0 fires (reloads since no ammunition) and p1 protects
      expected = {
          "player_0": np.array(
              [1, 0, 0, 1]
          ),  # p0 1 ammu 0 protect, p1 0 ammu 1 protect
          "player_1": np.array([0, 1, 1, 0]),
      }  # p1 then p0
      assert len(obs) == 2
      for k in range(2):
          np.testing.assert_array_equal(
              obs[f"player_{k}"], expected[f"player_{k}"]
          )
  
file_path: nevergrad/nevergrad/functions/rl/test_envs.py
imports: import typing
  import pytest
  import numpy
  from nevergrad.common import testing
  from .None import envs
label_desc: Use image node_id 2 for calling a global function with example usage: test_doubleoseven_observations() without return types