# Functions

CheckError will exit with exit code 1 when err is not nil.
NewSampleContext return a context for the Sample.