code: def testMaskingOps(
      self,
      masking_inputs,
      expected_masked_positions,
      description,
      expected_input_ids=None,
      expected_masked_ids=None,
      selection_rate=None,
      mask_token_rate=1,
      random_token_rate=0,
      shuffle_fn=None,
      no_mask_ids=None,
      max_selections_per_batch=10,
      axis=1,
  ):
      if no_mask_ids:
          no_mask_ids = [_VOCAB.index(i) for i in no_mask_ids]
      item_selector = item_selector_ops.FirstNItemSelector(
          2, no_mask_ids
      )
      values_chooser = masking_ops.MaskValuesChooser(
          vocab_size=_VOCAB_SIZE,
          mask_token=_MASK_TOKEN,
          mask_token_rate=mask_token_rate,
          random_token_rate=random_token_rate,
      )
  
      return self.runMaskingOpsTest(
          masking_inputs=masking_inputs,
          expected_masked_positions=expected_masked_positions,
          description=description,
          expected_input_ids=expected_input_ids,
          expected_masked_ids=expected_masked_ids,
          axis=axis,
          item_selector=item_selector,
          values_chooser=values_chooser,
      )
  
imports: from absl.testing import parameterized
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import lookup_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops.ragged import ragged_factory_ops
  from tensorflow.python.ops.ragged import ragged_functional_ops
  from tensorflow.python.platform import test
  from tensorflow_text.python.ops import item_selector_ops
  from tensorflow_text.python.ops import masking_ops
label_desc: Use image node_id 1 for calling the MaskingOpsTest obj's underlying member method code with example usage: obj.testMaskingOps(masking_inputs, expected_masked_positions, description, expected_input_ids, expected_masked_ids, selection_rate, mask_token_rate, random_token_rate, shuffle_fn, no_mask_ids, max_selections_per_batch, axis) and returns: self