code: def handle_agent_inputs(*args, **kwargs):
      args = [
          (arg.to_raw() if isinstance(arg, AgentType) else arg)
          for arg in args
      ]
      kwargs = {
          k: (v.to_raw() if isinstance(v, AgentType) else v)
          for k, v in kwargs.items()
      }
      return args, kwargs
  
imports: import os
  import pathlib
  import tempfile
  import uuid
  import numpy
  from ..utils import is_soundfile_availble, is_torch_available, is_vision_available, logging
label_desc: Use image node_id 1 for calling a global function with example usage: handle_agent_inputs() and returns: args,  kwargs