def METHOD_NAME(test_suite, extracted_tests):
    """ Extract tests from the test suite """
    # 'tests' we get from 'unittest.defaultTestLoader.discover' are "wrapped"
    # in multiple 'unittest.suite.TestSuite' classes/lists so we need to "unpack"
    # the individual test cases
    for test_case in test_suite:
        if isinstance(test_case, unittest.suite.TestSuite):
            METHOD_NAME(test_case, extracted_tests)
        if isinstance(test_case, unittest.TestCase):
            extracted_tests.add(test_case)
    return extracted_tests