def METHOD_NAME(a: ArrayLike, tol=None, hermitian=False):
    a = _atleast_float_1(a)
    if a.ndim < 2:
        return int((a != 0).any())
    if tol is None:
        # follow https://github.com/numpy/numpy/blob/v1.24.0/numpy/linalg/linalg.py#L1885
        atol = 0
        rtol = max(a.shape[-2:]) * torch.finfo(a.dtype).eps
    else:
        atol, rtol = tol, 0
    return torch.linalg.METHOD_NAME(a, atol=atol, rtol=rtol, hermitian=hermitian)