code: def _check_perm_fn_with_mask(self, inp: Tensor, mask: Tensor) -> None:
      perm_inp = _permute_feature(inp, mask)
      self._check_features_are_permuted(inp, perm_inp, mask)
  
file_path: captum/tests/attr/test_feature_permutation.py
imports: from typing import List, Tuple
  import torch
  from captum.attr._core.feature_permutation import _permute_feature, FeaturePermutation
  from tests.helpers.basic import assertTensorAlmostEqual, BaseTest
  from tests.helpers.basic_models import BasicModelWithSparseInputs
  from torch import Tensor
label_desc: Use image node_id 2 for calling the Test obj's underlying member method code with example usage: obj._check_perm_fn_with_mask(inp, mask) without return types