function getResponseReceivedExtraInfoEvent(networkRecord, index) {
  const headers = headersArrayToHeadersDict(networkRecord.responseHeaders);

  return {
    method: 'Network.responseReceivedExtraInfo',
    params: {
      requestId: getBaseRequestId(networkRecord) || `${idBase}.${index}`,
      statusCode: networkRecord.statusCode || 200,
      headers,
      headersText: networkRecord.responseHeadersText,
    },
    targetType: 'sessionTargetType' in networkRecord ? networkRecord.sessionTargetType : 'page',
    sessionId: networkRecord.sessionId,
  };
}
@param {Partial<NetworkRequest>} networkRecord
@param {number} index
@return {LH.Protocol.RawEventMessage}