write = async (petNamePath, id) => {
    const petName = parsePetNamePath(petNamePath);
    idToName.set(id, petName);
    nameToId.set(petName, id);
  }
@param {string[]} petNamePath
@param {string} id