code: def test_exc_common(formatstr, args, exception, excmsg):
      # test str and bytes
      test_exc(formatstr, args, exception, excmsg)
      test_exc(formatstr.encode("ascii"), args, exception, excmsg)
  
imports: from test.support import verbose, TestFailed
  import locale
  import sys
  import re
  import test.support
  import unittest
label_desc: Use image node_id 4 for calling a global function with example usage: test_exc_common(formatstr, args, exception, excmsg) without return types