code: def test_tcsetwinsize_errors(self):
      size = termios.tcgetwinsize(self.fd)
      self.assertRaises(
          TypeError, termios.tcsetwinsize, self.fd, size[:-1]
      )
      self.assertRaises(
          TypeError, termios.tcsetwinsize, self.fd, size + (0,)
      )
      self.assertRaises(
          TypeError, termios.tcsetwinsize, self.fd, object()
      )
      self.assertRaises(
          OverflowError,
          termios.tcsetwinsize,
          self.fd,
          (size[0], 2**1000),
      )
      self.assertRaises(
          TypeError,
          termios.tcsetwinsize,
          self.fd,
          (size[0], float(size[1])),
      )
      self.assertRaises(
          TypeError, termios.tcsetwinsize, self.fd, (size[0], object())
      )
      self.assertRaises(
          OverflowError,
          termios.tcsetwinsize,
          self.fd,
          (2**1000, size[1]),
      )
      self.assertRaises(
          TypeError,
          termios.tcsetwinsize,
          self.fd,
          (float(size[0]), size[1]),
      )
      self.assertRaises(
          TypeError, termios.tcsetwinsize, self.fd, (object(), size[1])
      )
      self.assertRaisesTermiosError(
          errno.ENOTTY, termios.tcsetwinsize, self.bad_fd, size
      )
      self.assertRaises(ValueError, termios.tcsetwinsize, -1, size)
      self.assertRaises(
          OverflowError, termios.tcsetwinsize, 2**1000, size
      )
      self.assertRaises(TypeError, termios.tcsetwinsize, object(), size)
      self.assertRaises(TypeError, termios.tcsetwinsize, self.fd)
  
imports: import errno
  import os
  import sys
  import tempfile
  import unittest
  from test.support.import_helper import import_module
label_desc: Use image node_id 18 for calling the TestFunctions obj's underlying member method code with example usage: obj.test_tcsetwinsize_errors() without return types