code: def create_and_check_attention_mask_determinism(
      self,
      config,
      input_ids,
      token_type_ids,
      input_mask,
      sequence_labels,
      token_labels,
      choice_labels,
  ):
      model = TFLongformerModel(config=config)
  
      attention_mask = tf.ones(input_ids.shape, dtype=tf.int64)
      output_with_mask = model(
          input_ids, attention_mask=attention_mask
      )[0]
      output_without_mask = model(input_ids)[0]
      tf.debugging.assert_near(
          output_with_mask[0, 0, :5],
          output_without_mask[0, 0, :5],
          rtol=1e-4,
      )
  
imports: import unittest
  from transformers import is_tf_available
  from transformers.testing_utils import require_sentencepiece, require_tf, require_tokenizers, slow, tooslow
  from ...test_configuration_common import ConfigTester
  from ...test_modeling_tf_common import TFModelTesterMixin, ids_tensor, random_attention_mask
label_desc: Use image node_id 3 for calling the TFLongformerModelTester obj's underlying member method code with example usage: obj.create_and_check_attention_mask_determinism(config, input_ids, token_type_ids, input_mask, sequence_labels, token_labels, choice_labels) without return types