human
Can you provide a the Python code you requested given the following:
Complete the below
@simple_decorator
def online_only(test_func):

    ''''Decorate a test to check online state.'
    '''
assistant
#Here is the Python code you requested.
    def _test(*args, **kwargs):
        if (not is_online()):
            raise nose.SkipTest(u'Host    is    not    online')
        return test_func(*args, **kwargs)
    return _test