from typing import Union
from typing import Tuple
from typing import List


def shape_to_tuple(shape: Union[int, Tuple[int], List[int]]):
    """
    Returns a tuple representation of the input shape.

    :param shape: The shape input to convert to tuple representation.
    :retrn: The shape in tuple representation
    """
    if isinstance(shape, int):
        return (shape,)
    else:
        return tuple(shape)