code: def test_boolean_errors():
      a = intervalMembership(True, True)
      raises(ValueError, lambda: a & 1)
      raises(ValueError, lambda: a | 1)
      raises(ValueError, lambda: a ^ 1)
  
file_path: sympy/sympy/plotting/intervalmath/tests/test_interval_membership.py
imports: from sympy.core.symbol import Symbol
  from sympy.plotting.intervalmath import interval
  from sympy.plotting.intervalmath.interval_membership import intervalMembership
  from sympy.plotting.experimental_lambdify import experimental_lambdify
  from sympy.testing.pytest import raises
label_desc: Use image node_id 7 for calling a global function with example usage: test_boolean_errors() without return types