code: def test_build_mask_with_padding_equal_to_one(self):
      sequence = torch.tensor([8, 2, 3, 4, 1, 1, 1])
      expected = torch.tensor([1, 1, 1, 1, 0, 0, 0])
      np.testing.assert_array_equal(
          build_mask(sequence, 1).numpy(), expected.numpy()
      )
  
file_path: H2O/h2o_flexgen/benchmark/third_party/transformers/examples/research_projects/bertabs/test_utils_summarization.py
imports: import unittest
  import numpy
  import torch
  from .utils_summarization import build_mask, compute_token_type_ids, process_story, truncate_or_pad
label_desc: Use image node_id 10 for calling the SummarizationDataProcessingTest obj's underlying member method code with example usage: obj.test_build_mask_with_padding_equal_to_one() without return types