code: def test_act_box_env_spec_mismatch_batch(batch_data):
      with pytest.raises(ValueError, match="Each action has"):
          batch_data["env_spec"] = EnvSpec(
              batch_data["env_spec"].observation_space,
              akro.Box(
                  low=1, high=np.inf, shape=(4, 3, 2), dtype=np.float32
              ),
          )
          s = TimeStepBatch(**batch_data)
          del s
  
imports: import akro
  import gym.spaces
  import numpy
  import pytest
  from garage import EnvSpec, EnvStep, EpisodeBatch, StepType, TimeStep, TimeStepBatch
label_desc: Use image node_id 38 for calling a global function with example usage: test_act_box_env_spec_mismatch_batch(batch_data) without return types