parameters: (data)
return_statement: return True
docstring: Check response is ok
      :param data: response body as JSON dict
      :return:
docstring_summary: Check response is ok
      :param data: response body as JSON dict
      :return:
docstring_tokens: Check response is ok : param data : response body as JSON dict : return :
function: def response_is_ok(data):
      """
      Check response is ok
      :param data: response body as JSON dict
      :return:
      """
  
      if not 'contextResponses' in data:
          return False
  
      if len(data['contextResponses']) == 0:
          return False
  
      if not 'statusCode' in data['contextResponses'][0]:
          return False
  
      if not 'code' in data['contextResponses'][0]['statusCode']:
          return False
  
      if data['contextResponses'][0]['statusCode']['code'] != '200':
          return False
  
      return True
function_tokens: def response_is_ok ( data ) : if not 'contextResponses' in data : return False if len ( data [ 'contextResponses' ] ) == 0 : return False if not 'statusCode' in data [ 'contextResponses' ] [ 0 ] : return False if not 'code' in data [ 'contextResponses' ] [ 0 ] [ 'statusCode' ] : return False if data [ 'contextResponses' ] [ 0 ] [ 'statusCode' ] [ 'code' ] != '200' : return False return True