code: def test_mask(self, device):
      patches = torch.rand(1, 1, 32, 32, device=device)
      mask = torch.rand(1, 32, 32, device=device)
      loftr = LoFTR().to(patches.device, patches.dtype)
      sample = {
          "image0": patches,
          "image1": patches,
          "mask0": mask,
          "mask1": mask,
      }
      with torch.no_grad():
          out = loftr(sample)
      assert out is not None
  
file_path: kornia/test/feature/test_loftr.py
imports: import sys
  import pytest
  import torch
  from torch.autograd import gradcheck
  import kornia.testing
  from kornia.feature import LoFTR
  from kornia.geometry import resize
  from kornia.testing import assert_close
  from kornia.utils._compat import torch_version_ge
label_desc: Use image node_id 5 for calling the TestLoFTR obj's underlying member method code with example usage: obj.test_mask(device) without return types