code: def test_ioctl_signed_unsigned_code_param(self):
      if not pty:
          raise unittest.SkipTest("pty module required")
      mfd, sfd = pty.openpty()
      try:
          if termios.TIOCSWINSZ < 0:
              set_winsz_opcode_maybe_neg = termios.TIOCSWINSZ
              set_winsz_opcode_pos = termios.TIOCSWINSZ & 0xFFFFFFFF
          else:
              set_winsz_opcode_pos = termios.TIOCSWINSZ
              (set_winsz_opcode_maybe_neg,) = struct.unpack(
                  "i", struct.pack("I", termios.TIOCSWINSZ)
              )
  
          our_winsz = struct.pack("HHHH", 80, 25, 0, 0)
          # test both with a positive and potentially negative ioctl code
          new_winsz = fcntl.ioctl(mfd, set_winsz_opcode_pos, our_winsz)
          new_winsz = fcntl.ioctl(
              mfd, set_winsz_opcode_maybe_neg, our_winsz
          )
      finally:
          os.close(mfd)
          os.close(sfd)
  
file_path: cpython/Lib/test/test_ioctl.py
imports: import array
  import unittest
  from test.support import get_attribute
  from test.support.import_helper import import_module
  import os, struct
label_desc: Use image node_id 6 for calling the IoctlTests obj's underlying member method code with example usage: obj.test_ioctl_signed_unsigned_code_param() without return types