human
Solve the following python programming problem given the following code:
def _put_transaction_test_cases_last(self, test) : 
    'Reorder tests in the suite so TransactionTestCase-based tests come
        last.

        Django has a weird design decision wherein TransactionTestCase doesn\'t
        clean up after itself. Instead, it resets the DB to a clean state only
        at the *beginning* of each test:
        https://docs.djangoproject.com/en/dev/topics/testing/?from=olddocs#
        django. test.TransactionTestCase. Thus, Django reorders tests so
        TransactionTestCases all come last. Here we do the same.

        "I think it\'s historical. We used to have doctests also, adding cleanup
        after each unit test wouldn\'t necessarily clean up after doctests, so
        you\'d have to clean on entry to a test anyway." was once uttered on
        #django-dev.

        ' 
    def filthiness(test) : 
        "Return a comparand based on whether a test is guessed to clean
            up after itself.

            Django's TransactionTestCase doesn't clean up the DB on teardown,
            but it's hard to guess whether subclasses (other than TestCase) do.
            We will assume they don't, unless they have a
            ``cleans_up_after_itself`` attr set to True. This is reasonable
            because the odd behavior of TransactionTestCase is documented, so
            subclasses should by default be assumed to preserve it.

            Thus, things will get these comparands (and run in this order):

            * 1: TestCase subclasses. These clean up after themselves.
            * 1: TransactionTestCase subclasses with
                 cleans_up_after_itself=True. These include
                 FastFixtureTestCases. If you're using the
                 FixtureBundlingPlugin, it will pull the FFTCs out, reorder
                 them, and run them first of all.
            * 2: TransactionTestCase subclasses. These leave a mess.
            * 2: Anything else (including doctests, I hope). These don't care
                 about the mess you left, because they...

    
    

    Fix the buggy line: return ContextSuite (test)
assistant
#Here is Python code to fix the buggy line: return ContextSuite (test)
.

return ContextSuite (flattened)