code: def assertRaisesErrno(self, errno, func, *args, **kwargs):
      try:
          func(*args, **kwargs)
      except zmq.ZMQError as e:
          self.assertEqual(
              e.errno,
              errno,
              "wrong error raised, expected '%s' \
  got '%s'"
              % (zmq.ZMQError(errno), zmq.ZMQError(e.errno)),
          )
      else:
          self.fail("Function did not raise any error")
  
imports: import sys
  import time
  from threading import Thread
  from unittest import TestCase
  from pytest import mark
  import zmq
  from zmq.utils import jsonapi
label_desc: Use image node_id 9 for calling the BaseZMQTestCase obj's underlying member method code with example usage: obj.assertRaisesErrno(errno, func) without return types