code: def test_make_pad_mask(test_case):
      """Test if onnx-convertible make_pad_mask works correctly."""
      _tc = test_case.copy()
      lengths = _tc.pop("lengths")
      non_traceable_result = make_pad_mask(lengths, **_tc)
      traceable_result = make_pad_mask(torch.LongTensor(lengths), **_tc)
      assert (traceable_result == non_traceable_result).all()
  
file_path: espnet/test/test_nets_utils.py
imports: import pytest
  import torch
  from espnet.nets.pytorch_backend.nets_utils import make_pad_mask, trim_by_ctc_posterior
label_desc: Use image node_id 1 for calling a global function with example usage: test_make_pad_mask(test_case) without return types