function saveLhr(lhr, basePath) {
  fs.writeFileSync(`${basePath}/lhr.report.json`, JSON.stringify(lhr, null, 2));
}
Save LHR to file located at basePath/lhr.report.json.
@param {LH.Result} lhr
@param {string} basePath