code: def with_list(layer: Model[List2d, List2d]) -> Model[SeqT, SeqT]:
      return Model(
          f"with_list({layer.name})",
          forward,
          init=init,
          layers=[layer],
          dims={
              name: layer.maybe_get_dim(name)
              for name in layer.dim_names
          },
      )
  
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 1 for calling a global function with example usage: with_list(layer) and returns: Model