code: def seq_lengths(sequences):
      return numpy.array([sum(seq) for seq in sequences], dtype="i")
  
file_path: spacy-transformers/spacy_transformers/tests/test_truncation.py
imports: import pytest
  import numpy
  from thinc.types import Ragged
  from thinc.api import NumpyOps
  from ..data_classes import WordpieceBatch
  from ..truncate import _truncate_tokens, _truncate_alignment
label_desc: Use image node_id 3 for calling a global function with example usage: seq_lengths(sequences) and returns: numpy