code: def test_fork(self):
      # gh-110395: kqueue objects must be closed after fork
      kqueue = select.kqueue()
      if (pid := os.fork()) == 0:
          try:
              self.assertTrue(kqueue.closed)
              with self.assertRaisesRegex(ValueError, "closed kqueue"):
                  kqueue.fileno()
          except:
              os._exit(1)
          finally:
              os._exit(0)
      else:
          support.wait_process(pid, exitcode=0)
          self.assertFalse(kqueue.closed)
  
file_path: cpython/Lib/test/test_kqueue.py
imports: import errno
  import os
  import select
  import socket
  from test import support
  import time
  import unittest
label_desc: Use image node_id 8 for calling the TestKQueue obj's underlying member method code with example usage: obj.test_fork() without return types