code: def _convert_variables_to_tensors(args, kwargs):
      args = [_to_tensor_or_tensor_spec(x) for x in args]
      kwargs = {
          kw: _to_tensor_or_tensor_spec(x) for kw, x in kwargs.items()
      }
      return tuple(args), kwargs
  
imports: import functools
  import inspect
  from typing import Any, Dict, Tuple
  import six
  from tensorflow.core.function import trace_type
  from tensorflow.core.function.polymorphism import function_type
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor
  from tensorflow.python.framework import type_spec
  from tensorflow.python.ops import resource_variable_ops
  from tensorflow.python.util import nest
label_desc: Use image node_id 12 for calling a global function with example usage: _convert_variables_to_tensors(args, kwargs) and returns: tuple,  kwargs