async function prepareDeviceEmulation(driver, settings) {
  // Enable network domain here so future calls to `emulate()` don't clear cache (https://github.com/GoogleChrome/lighthouse/issues/12631)
  await driver.defaultSession.sendCommand('Network.enable');

  // Emulate our target device screen and user agent.
  await emulation.emulate(driver.defaultSession, settings);
}
Prepares a target to be analyzed by setting up device emulation (screen/UA, not throttling) and
async stack traces for network initiators.

@param {LH.Gatherer.Driver} driver
@param {LH.Config.Settings} settings