def is_same_dtype(dtype1: str, dtype2: str) -> bool:
    """Returns True if dtype1 and dtype2 are the same dtype and False otherwise.

    Parameters
    ----------
    dtype1: str
        A data type string.
    dtype2: str
        A data type string.

    Returns
    ----------
    bool
        whether dtype1 and dtype2 are the same dtype
    """
    return normalize_dtype(dtype1) == normalize_dtype(dtype2)
Returns True if dtype1 and dtype2 are the same dtype and False otherwise.

Parameters
----------
dtype1: str
A data type string.
dtype2: str
A data type string.

Returns
----------
bool
whether dtype1 and dtype2 are the same dtype
python/aitemplate/compiler/dtype.py