code: def test_binary_operators():
      from pybind11_tests import Flags
  
      assert int(Flags.Read) == 4
      assert int(Flags.Write) == 2
      assert int(Flags.Execute) == 1
      assert int(Flags.Read | Flags.Write | Flags.Execute) == 7
      assert int(Flags.Read | Flags.Write) == 6
      assert int(Flags.Read | Flags.Execute) == 5
      assert int(Flags.Write | Flags.Execute) == 3
      assert int(Flags.Write | 1) == 3
  
      state = Flags.Read | Flags.Write
      assert (state & Flags.Read) != 0
      assert (state & Flags.Write) != 0
      assert (state & Flags.Execute) == 0
      assert (state & 1) == 0
  
      state2 = ~state
      assert state2 == -7
      assert int(state ^ state2) == -1
  
imports: import pytest
label_desc: Use image node_id 4 for calling a global function with example usage: test_binary_operators() without return types