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