def replace_all_entities(string: str | bytes, keep_xml_entities: bool = False) -> str | bytes: "Replace all entities in the specified string" pass