from typing import Tuple
from typing import Any


def make_table_args(*args, **kwargs) -> Tuple[Any]:
    """
    SQLAlchemy allows several formats for __table_args__. The most generic
    is a tuple that is a sequence of e.g. constraints, with the last element
    being a dictionary of keyword arguments.
    """
    # Add standard ones:
    kwargs["mysql_engine"] = "InnoDB"
    kwargs["mysql_row_format"] = "DYNAMIC"
    kwargs["mysql_charset"] = "utf8mb4 COLLATE utf8mb4_unicode_ci"

    # Return the tuple:
    return tuple(args + (kwargs, ))