code: def sequence_mask(sequence_length, max_len=None):
      if max_len is None:
          max_len = sequence_length.max()
      batch_size = sequence_length.size(0)
      seq_range = np.empty([0, max_len], dtype=np.int8)
      seq_range_expand = seq_range.unsqueeze(0).expand(
          batch_size, max_len
      )
      if sequence_length.is_cuda:
          seq_range_expand = seq_range_expand.cuda()
      seq_length_expand = sequence_length.unsqueeze(1).expand_as(
          seq_range_expand
      )
      # B x T_max
      return seq_range_expand < seq_length_expand
  
file_path: TTS/TTS/tts/tf/utils/generic_utils.py
imports: import datetime
  import importlib
  import pickle
  import numpy
  import tensorflow
label_desc: Use image node_id 3 for calling a global function with example usage: sequence_mask(sequence_length, max_len) and returns: unknown