from typing import Any
from typing import Union
from typing import List
from typing import Sequence


def _list_convert(x: Any) -> Union[Any, List[Any]]:
    """Converts argument to list if not already a sequence."""
    return [x] if not isinstance(x, Sequence) else x