async def METHOD_NAME(self):
    try:
        response = self.api_client.generate_token()
        # Construct a response object
        return_obj = dict()
        if response['code'] == 200:
            return_obj['success'] = True
        else:
            ErrorResponder.fill_error(return_obj, response, ['message'], connector=self.connector)
        return return_obj
    except Exception as err:
        self.logger.error('error when pinging datasource {}:'.format(err))
        raise