code: def convert_Cast(
      func, opset_version, input_names, output_names, context
  ):
      typ = (
          func.type
          if isinstance(func.type, np.dtype)
          else np.dtype(func.type)
      )
      if opset_version == 1:
          return (
              onnx_helper.make_node(
                  "Cast",
                  input_names,
                  output_names,
                  to=TENSOR_TYPE_TO_NAME[NP_TYPE_TO_TENSOR_TYPE[typ]],
              ),
          )
      elif opset_version == 6:
          return (
              onnx_helper.make_node(
                  "Cast",
                  input_names,
                  output_names,
                  to=NP_TYPE_TO_TENSOR_TYPE[typ],
              ),
          )
  
imports: import warnings
  import chainer
  import numpy
  import onnx
  from onnx.mapping import NP_TYPE_TO_TENSOR_TYPE
  from onnx_chainer.functions.opset_version import support
  from onnx_chainer import onnx_helper
label_desc: Use image node_id 1 for calling a global function with example usage: convert_Cast(func, opset_version, input_names, output_names, context) and returns: onnx_helper, onnx_helper