class_docstr: Base class for unit tests in this module. Contains relevant utilities.
class_docstr_tok: ["Base","class","for","unit","tests","in","this","module",".","Contains","relevant","utilities","."]
code: def assertPrints(self, expected_result):
      try:
          out_capturer = six.StringIO()
          sys.stdout = out_capturer
          yield
          self.assertEqual(out_capturer.getvalue(), expected_result)
      finally:
          sys.stdout = sys.__stdout__
  
imports: import contextlib
  import imp
  import inspect
  import sys
  import unittest
  import six
  from nvidia.dali._autograph.core import config
  from nvidia.dali._autograph.core import converter
  from nvidia.dali._autograph.impl import api
  from nvidia.dali._autograph.utils import hooks
label_desc: Use image node_id 1 for calling the TestCase obj's underlying member method code with example usage: obj.assertPrints(expected_result) without return types