code: def gen_input_casting_func(
      spec: dict[str, t.Any]
  ) -> ONNXArgCastingFuncType:
      return _gen_input_casting_func(spec["type"])
  
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 1 for calling a global function with example usage: gen_input_casting_func(spec) and returns: _gen_input_casting_func