code: def assertNotRaises(self, exc_type):
      try:
          yield None
      except exc_type:
          raise self.failureException(
              "{} raised".format(exc_type.__name__)
          )
  
imports: import unittest
  from contextlib import contextmanager
label_desc: Use image node_id 1 for calling the CustomTestCase obj's underlying member method code with example usage: obj.assertNotRaises(exc_type) without return types