def METHOD_NAME(x):
    """Checks if a given matrix is of DIA format.
    Returns:
        bool: Returns if ``x`` is :class:`cupyx.scipy.sparse.dia_matrix`.
    """
    return isinstance(x, dia_matrix)