code: def _get_list(model, seq):
      if isinstance(seq, Padded):
          return model.ops.padded2list(seq)
      elif isinstance(seq, Ragged):
          return model.ops.unflatten(seq.data, seq.lengths)
      else:
          return seq
  
file_path: thinc/thinc/layers/with_list.py
imports: from typing import Callable, List, Optional, Tuple, TypeVar, Union, cast
  from ..config import registry
  from ..model import Model
  from ..types import Array2d, Floats2d, Ints2d, List2d, Padded, Ragged
label_desc: Use image node_id 4 for calling a global function with example usage: _get_list(model, seq) and returns: model, model, seq