code: def test_sample_mask():
      """Box cannot have a mask applied."""
      space = Box(0, 1)
      with pytest.raises(
          gym.error.Error,
          match=re.escape(
              "Box.sample cannot be provided a mask, actual value: "
          ),
      ):
          space.sample(mask=np.array([0, 1, 0], dtype=np.int8))
  
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 8 for calling a global function with example usage: test_sample_mask() without return types