code: def test_io(self):
      code = textwrap.dedent(
          """
              import sys
              filename = sys.argv[1]
              with open(filename) as fp:
                  print(f"{fp.encoding}/{fp.errors}")
          """
      )
      filename = __file__
  
      out = self.get_output("-c", code, filename, PYTHONUTF8="1")
      self.assertEqual(out.lower(), "utf-8/strict")
  
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 8 for calling the UTF8ModeTests obj's underlying member method code with example usage: obj.test_io() without return types