code: def test_low_high_values(value, valid: bool):
      """Test what `low` and `high` values are valid for `Box` space."""
      if valid:
          with warnings.catch_warnings(record=True) as caught_warnings:
              Box(low=value, high=value)
          assert len(caught_warnings) == 0, tuple(
              warning.message for warning in caught_warnings
          )
      else:
          with pytest.raises(
              ValueError,
              match=re.escape(
                  "expect their types to be np.ndarray, an integer or a float"
              ),
          ):
              Box(low=value, high=value)
  
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 2 for calling a global function with example usage: test_low_high_values(value, valid) without return types