code: func ensureContext(ctx context.Context) context.Context {
  	if ctx == nil {
  		return context.TODO()
  	}
  	return ctx
  }
docs: // ensureContext is a helper method to ensure a context is not nil, even if the
  // user specified it as such.