code: func GetResourceWithOptions(r rest.GetterWithOptions, scope *RequestScope, isSubresource bool) http.HandlerFunc {
  	return getResourceHandler(scope,
  		func(ctx context.Context, name string, req *http.Request, trace *utiltrace.Trace) (runtime.Object, error) {
  			opts, subpath, subpathKey := r.NewGetOptions()
  			trace.Step("About to process Get options")
  			if err := getRequestOptions(req, scope, opts, subpath, subpathKey, isSubresource); err != nil {
  				err = errors.NewBadRequest(err.Error())
  				return nil, err
  			}
  			if trace != nil {
  				trace.Step("About to Get from storage")
  			}
  			return r.Get(ctx, name, opts)
  		})
  }
docs: // GetResourceWithOptions returns a function that handles retrieving a single resource from a rest.Storage object.