code: def test_raise_orig_parts(self):
      orig = self.orig
      match, rest = orig.split(TypeError)
  
      test_cases = [
          ([match, rest], orig),
          ([rest, match], orig),
          ([match], match),
          ([rest], rest),
          ([], None),
      ]
  
      for input, expected in test_cases:
          with self.subTest(input=input):
              res = _testcapi.unstable_exc_prep_reraise_star(
                  orig, input
              )
              self.assertExceptionIsLike(res, expected)
  
imports: import errno
  import os
  import re
  import sys
  import unittest
  from test import support
  from test.support import import_helper
  from test.support.os_helper import TESTFN, TESTFN_UNDECODABLE
  from test.support.script_helper import assert_python_failure
  from test.support.testcase import ExceptionIsLikeMixin
  from .test_misc import decode_stderr
label_desc: Use image node_id 5 for calling the Test_PyUnstable_Exc_PrepReraiseStar obj's underlying member method code with example usage: obj.test_raise_orig_parts() without return types