def is_valid_id(s: str): return all(c.isalnum() or c in "_-" for c in s)