code: def test_events_mask_overflow(self):
      pollster = select.devpoll()
      w, r = os.pipe()
      pollster.register(w)
      # Issue #17919
      self.assertRaises(ValueError, pollster.register, 0, -1)
      self.assertRaises(OverflowError, pollster.register, 0, 1 << 64)
      self.assertRaises(ValueError, pollster.modify, 1, -1)
      self.assertRaises(OverflowError, pollster.modify, 1, 1 << 64)
  
file_path: cpython/Lib/test/test_devpoll.py
imports: import os
  import random
  import select
  import unittest
  from test.support import cpython_only
label_desc: Use image node_id 5 for calling the DevPollTests obj's underlying member method code with example usage: obj.test_events_mask_overflow() without return types