async function isPageHung(session) {
  try {
    session.setNextProtocolTimeout(1000);
    await session.sendCommand('Runtime.evaluate', {
      expression: '"ping"',
      returnByValue: true,
      timeout: 1000,
    });

    return false;
  } catch (err) {
    return true;
  }
}
Returns whether the page appears to be hung.
@param {LH.Gatherer.ProtocolSession} session
@return {Promise<boolean>}