def to_list(os: Optional[Union[(Name, List[Name])]]) -> List[Label]:
    if (os is None):
        return []
    elif is_name_like_tuple(os):
        return [cast(Label, os)]
    elif is_name_like_value(os):
        return [(os,)]
    else:
        return [(o if is_name_like_tuple(o) else (o,)) for o in os]
def to_list(os: Optional[Union[(Name, List[Name])]]) -> List[Label]:
    if (os is None):
        return []
    elif is_name_like_tuple(os):
        return [cast(Label, os)]
    elif is_name_like_value(os):
        return [(os,)]
    else:
        return [(o if is_name_like_tuple(o) else (o,)) for o in os]