code: def trailing_silence_mask(f0):
      """
      >>> f0 = torch.tensor([1.0, 2.0, 0.0, 1.0, 0.0, 0.0, 0.0])
      >>> trailing_silence_mask(f0)
      tensor([False, False, False, False,  True,  True,  True])
      """
      assert f0.ndim == 1
      mask = ((f0.flip(0) != 0.0).cumsum(0) == 0).flip(0)
      return mask
  
file_path: textlesslib/textless/data/f0_preprocess.py
imports: import torch
  import amfm_decompy.basic_tools
  import amfm_decompy.pYAAPT
  from librosa.util import normalize
  import numpy
  from scipy.interpolate import interp1d
label_desc: Use image node_id 3 for calling a global function with example usage: trailing_silence_mask(f0) and returns: mask