code: def sequence_mask(sequence_length, max_len=None):
      if max_len is None:
          max_len = sequence_length.data.max()
      seq_range = torch.arange(
          max_len,
          dtype=sequence_length.dtype,
          device=sequence_length.device,
      )
      # B x T_max
      return seq_range.unsqueeze(0) < sequence_length.unsqueeze(1)
  
file_path: TTS/TTS/tts/utils/generic_utils.py
imports: import re
  import torch
  import importlib
  import numpy
  from collections import Counter
  from TTS.utils.generic_utils import check_argument
label_desc: Use image node_id 2 for calling a global function with example usage: sequence_mask(sequence_length, max_len) and returns: unknown