code: def _gen_input_casting_func_for_sequence(
      sig: dict[str, t.Any]
  ) -> t.Callable[[ONNXArgSequenceType], list[t.Any]]:
      seq_elem_sig = t.cast(dict[str, t.Any], sig["elemType"])
      elem_casting_func = _gen_input_casting_func(seq_elem_sig)
  
      def _mapping(item: ONNXArgSequenceType) -> list[t.Any]:
          new_item = list(elem_casting_func(elem) for elem in item)
          return new_item
  
      return _mapping
  
file_path: BentoML/grpc-client/bentoml/_internal/frameworks/utils/onnx.py
imports: from __future__ import annotations
  import logging
  import typing
  from typing import TYPE_CHECKING
  from ....exceptions import BentoMLException
  from ...types import LazyType
  from ...utils.lazy_loader import LazyLoader
label_desc: Use image node_id 5 for calling a global function with example usage: _gen_input_casting_func_for_sequence(sig) and returns: _mapping, new_item