code: def triu_onnx(x):
      arange = torch.arange(x.size(0), device=x.device)
      mask = arange.unsqueeze(-1).expand(-1, x.size(0)) <= arange
      return x * mask
  
file_path: espnet/espnet/nets/pytorch_backend/nets_utils.py
imports: import logging
  from typing import Dict
  import numpy
  import torch
label_desc: Use image node_id 6 for calling a global function with example usage: triu_onnx(x) and returns: unknown