code: def result_or_error(response):
      
      data = response.json()
      result = data.get('result')
      if result is not None:
          return result
      raise exceptions.ApiError(response, data)
docs: Get `result` field from Betfair response or raise exception if not
      found.
  
      :param Response response:
      :raises: ApiError if no results passed