Check if input tensor is in `n:m` sparse pattern via function given by :attr:`func_name`.
Currently only support tensor with dimension less than or equal to 4.
Args:
tensor (nparray): The input tensor.
func_name (CheckMethod, optional): The function name to generate spase mask. Default is `CheckMethod.CHECK_1D`. All options please refer to `CheckMethod`.
n (int, optional): n of `n:m` sparse pattern. Default is 2.
m (int, optional): m of `n:m` sparse pattern. Default is 4.
Returns:
bool: True if tensor pass checking of function given by :attr:`func_name`, else False.