async function resolveDevtoolsNodePathToObjectId(session, path) {
  try {
    const {nodeId} = await session.sendCommand('DOM.pushNodeByPathToFrontend', {path});
    const {object: {objectId}} = await session.sendCommand('DOM.resolveNode', {nodeId});
    return objectId;
  } catch (err) {
    return handlePotentialMissingNodeError(err);
  }
}
Resolves a proprietary devtools node path (created from page-function.js) to the object ID for use
with `Runtime.callFunctionOn`. `undefined` means the node could not be found.
Requires `DOM.getDocument` to have been called since the object's creation or it will always be `undefined`.

@param {LH.Gatherer.ProtocolSession} session
@param {string} path
@return {Promise<string|undefined>}