human
Complete the below
def ifPlatformSupported(f):

    ''''Decorator for tests that are not expected to work on all platforms.
    Calling L{PIDFile.isRunning} currently raises L{NotImplementedError} on
    non-POSIX platforms.
    On an unsupported platform, we expect to see any test that calls
    L{PIDFile.isRunning} to raise either L{NotImplementedError}, L{SkipTest},
    or C{self.failureException}.
    (C{self.failureException} may occur in a test that checks for a specific
    exception but it gets NotImplementedError instead.)
    @param f: The test method to decorate.
    @type f: method
    @return: The wrapped callable.'
    '''
assistant
#Here is the Python code you requested.
    @wraps(f)
    def wrapper(self, *args, **kwargs):
        supported = (platform.getType() == 'posix')
        if supported:
            return f(self, *args, **kwargs)
        else:
            e = self.assertRaises((NotImplementedError, SkipTest, self.failureException), f, self, *args, **kwargs)
            if isinstance(e, NotImplementedError):
                self.assertTrue(str(e).startswith('isRunning    is    not    implemented    on    '))
    return wrapper