def wrapped(self, *args, **kwargs):
    if (not self.apiKey):
        msg = 'You must be authenticated to use this method'
        raise errors.AuthenticationError(msg)
    else:
        return fn(self, *args, **kwargs)
def wrapped(self, *args, **kwargs):
    if (not self.apiKey):
        msg = 'You must be authenticated to use this method'
        raise errors.AuthenticationError(msg)
    else:
        return fn(self, *args, **kwargs)