code: def bench_remove_sentence_boundaries(benchmark):
      device = torch.device("cuda")
      # shape: (32, 50, 1)
      tensor = torch.tensor([[3] * 50] * 32, device=device).unsqueeze(
          -1
      )
      # shape: (32, 50)
      mask = torch.tensor(
          [[True] * 50, [True] * 30 + [False] * 20] * 16, device=device
      )
      benchmark(util.remove_sentence_boundaries, tensor, mask)
  
imports: import torch
  from allennlp.nn import util
  from allennlp.common.testing import requires_gpu
label_desc: Use image node_id 2 for calling a global function with example usage: bench_remove_sentence_boundaries(benchmark) without return types