code: def test_init_errors(low, high, kwargs, error, message):
      """Test all constructor errors."""
      with pytest.raises(error, match=f"^{re.escape(message)}$"):
          Box(low=low, high=high, **kwargs)
  
file_path: gym/tests/spaces/test_box.py
imports: import re
  import warnings
  import numpy
  import pytest
  import gym.error
  from gym.spaces import Box
  from gym.spaces.box import get_inf
label_desc: Use image node_id 3 for calling a global function with example usage: test_init_errors(low, high, kwargs, error, message) without return types