code: def check_script_output(self, src, expected):
      with tempfile.TemporaryDirectory() as tmpd:
          fn = os.path.join(tmpd, "test.py")
          with open(fn, "wb") as fp:
              fp.write(src)
          res = script_helper.assert_python_ok(fn)
      self.assertEqual(res.out.rstrip(), expected)
  
imports: import unittest
  from test.support import script_helper, captured_stdout, requires_subprocess, requires_resource
  from test.support.os_helper import TESTFN, unlink, rmtree
  from test.support.import_helper import unload
  import importlib
  import os
  import sys
  import subprocess
  import tempfile
label_desc: Use image node_id 1 for calling the FileSourceEncodingTest obj's underlying member method code with example usage: obj.check_script_output(src, expected) without return types