code: def get_resource(collection, key):
      
      resource = retrieve_resource(collection, key)
      _validate(endpoint_class(collection), request.method, resource)
  
      return resource_response(resource)
docs: Return the appropriate *Response* for retrieving a single resource.
  
      :param string collection: a :class:`sandman.model.Model` endpoint
      :param string key: the primary key for the :class:`sandman.model.Model`
      :rtype: :class:`flask.Response`