code: def seqeunce_mask_test():
      lengths = T.randint(10, 15, (8,))
      mask = sequence_mask(lengths)
      for i in range(8):
          l = lengths[i].item()
          assert mask[i, :l].sum() == l
          assert mask[i, l:].sum() == 0
  
imports: import torch
  from TTS.tts.utils.helpers import average_over_durations, generate_path, rand_segments, segment, sequence_mask
label_desc: Use image node_id 2 for calling a global function with example usage: seqeunce_mask_test() without return types