static getEntityFromUrl(url, entities) {
    // If it's a pre-v10 LHR, we don't have entities, so match against the root-ish domain
    if (!entities) {
      return Util.getPseudoRootDomain(url);
    }

    const entity = entities.find(e => e.origins.find(origin => url.startsWith(origin)));
    // This fallback case would be unexpected, but leaving for safety.
    return entity || Util.getPseudoRootDomain(url);
  }
Given the entity classification dataset and a URL, identify the entity.
@param {string} url
@param {LH.Result.Entities=} entities
@return {LH.Result.LhrEntity|string}