code: def test_all_bad(self, device, dtype):
      A = torch.ones(10, 3, 3, device=device, dtype=dtype)
      X, mask = safe_inverse_with_mask(A)
      assert torch.equal(mask, torch.zeros_like(mask))
  
imports: import pytest
  import torch
  from kornia.testing import assert_close
  from kornia.utils import _extract_device_dtype
  from kornia.utils.helpers import _torch_histc_cast, _torch_inverse_cast, _torch_solve_cast, _torch_svd_cast, safe_inverse_with_mask, safe_solve_with_mask
label_desc: Use image node_id 2 for calling the TestInverseWithMask obj's underlying member method code with example usage: obj.test_all_bad(device, dtype) without return types