code: def _list_to_tuple(cls, arg, *args, **kwargs):
      arg = tuple(arg)
      op = cls(*args, **kwargs)
      return op(arg)
  
imports: import contextlib
  import functools
  import inspect
  import weakref
  from collections import OrderedDict
  from funsor.registry import PartialDispatcher
  from funsor.util import methodof
label_desc: Use image node_id 7 for calling a global function with example usage: _list_to_tuple(cls, arg) and returns: op