code: def collection_response(cls, resources, start=None, stop=None):
      
      if _get_acceptable_response_type() == JSON:
          return _collection_json_response(cls, resources, start, stop)
      else:
          return _collection_html_response(resources, start, stop)
docs: Return a response for the *resources* of the appropriate content type.
  
      :param resources: resources to be returned in request
      :type resource: list of :class:`sandman.model.Model`
      :rtype: :class:`flask.Response`