code: def masked_mean(t, mask, dim=1):
      t = t.masked_fill(~mask[:, :, None], 0.0)
      return t.sum(dim=1) / mask.sum(dim=1)[..., None]
  
file_path: TTS/TTS/tts/layers/tortoise/clvp.py
imports: import torch
  import torch.nn
  import torch.nn.functional
  from torch import einsum
  from TTS.tts.layers.tortoise.arch_utils import CheckpointedXTransformerEncoder
  from TTS.tts.layers.tortoise.transformer import Transformer
  from TTS.tts.layers.tortoise.xtransformers import Encoder
label_desc: Use image node_id 2 for calling a global function with example usage: masked_mean(t, mask, dim) and returns: unknown