code: def test_error_from_string(self):
      # See http://bugs.python.org/issue6289
      input = "# coding: ascii\n\N{SNOWMAN}".encode("utf-8")
      with self.assertRaises(SyntaxError) as c:
          compile(input, "<string>", "exec")
      expected = (
          "'ascii' codec can't decode byte 0xe2 in position 16: "
          "ordinal not in range(128)"
      )
      self.assertTrue(
          c.exception.args[0].startswith(expected),
          msg=c.exception.args[0],
      )
  
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 14 for calling the MiscSourceEncodingTest obj's underlying member method code with example usage: obj.test_error_from_string() without return types