from typing import Union


def _args_list_example(x: str) -> Union[str, int]:
    """When applied to an arg with `nargs="+"`, this function is called for each value in arg."""
    return int(x) if ord(x) % 2 else str(x)