code: def _get_lengths(ds):
      tok = _get_tokenizer(ds)
      if tok is None:
          return
      return tok.get_lengths(ds.items)
  
imports: from __future__ import annotations
  from ..torch_basics import *
  from ..data.all import *
  from .core import *
label_desc: Use image node_id 5 for calling a global function with example usage: _get_lengths(ds) and returns: tok