human
I wrote the below code

    class MockResponse:
        def __init__(self, json_data, status_code):
            self.json_data = json_data
            self.status_code = status_code
        def json(self):
            return self.json_data
    if ((u'token' in data) and data[u'token'] and (data[u'token'] != u'12345678900')):
        return MockResponse({u'active': True, u'scope': u'read    write    dolphin', u'client_id': u'client_id_{}'.format(data[u'token']), u'username': u'{}_user'.format(data[u'token']), u'exp': int(calendar.timegm(exp.timetuple()))}, 200)
    return MockResponse({u'active': False}, 200)

What's a good function header?
 Here's a good function header?
assistant
#Here's a good function header.

def mocked_requests_post(url, data, *args, **kwargs):