code: def ensure_data_exists(self, request, data, error_message=None):
          
          if not data:
              error_message = (
                  error_message or "Unable to fetch API response from endpoint '{}'.".format(request.get_full_path())
              )
              LOGGER.error(error_message)
              raise NotFound(error_message)
docs: Ensure that the wrapped API client's response brings us valid data. If not, raise an error and log it.