human
Complete the below
@contextmanager
def assertNoFDsLeaked(test_case):

    ''''Context manager that asserts no file descriptors are leaked.
    :param test_case: The ``TestCase`` running this unit test.
    :raise SkipTest: when /dev/fd virtual filesystem is not available.'
    '''

Write me a the Python code you requested?
assistant
#Here is the Python code you requested.
    gc.collect()
    def process_fds():
        path = FilePath('/dev/fd')
        if (not path.exists()):
            raise SkipTest('/dev/fd    is    not    available.')
        return set([child.basename() for child in path.children()])
    fds = process_fds()
    try:
        (yield)
    finally:
        test_case.assertEqual(process_fds(), fds)