code: def get_output(self, *args, failure=False, **kw):
      kw = dict(self.DEFAULT_ENV, **kw)
      if failure:
          out = assert_python_failure(*args, **kw)
          out = out[2]
      else:
          out = assert_python_ok(*args, **kw)
          out = out[1]
      return out.decode().rstrip("\n\r")
  
imports: import locale
  import subprocess
  import sys
  import textwrap
  import unittest
  from test import support
  from test.support.script_helper import assert_python_ok, assert_python_failure
  from test.support import os_helper, MS_WINDOWS
label_desc: Use image node_id 2 for calling the UTF8ModeTests obj's underlying member method code with example usage: obj.get_output() and returns: out