def _get_shape(data) -> tuple:
    """Get shape of the data.

    Return
    ------
    tuple
        The shape of the data.
    """
    if isinstance(data, list):
        return data[0].shape  # Level zero of multiscale.
    return data.shape