code: def parse_input_example(input_example):
      input_list = list(input_example)
      input_dict = {}
      # process possible kwargs
      if isinstance(input_list[-1], dict):
          input_dict = input_list[-1]
          input_list = input_list[:-1]
      return input_list, input_dict
  
imports: import os
  from contextlib import nullcontext
  from enum import Enum
  from typing import Callable, Dict, Optional, Type
  import onnx
  import torch
  import torch.nn
  import torch.nn.functional
  from nemo.utils import CastToFloat, CastToFloatAll, logging
label_desc: Use image node_id 5 for calling a global function with example usage: parse_input_example(input_example) and returns: input_list,  input_dict