code: def trace_ops(filter_args):
      global _TRACE, _TRACE_FILTER_ARGS
      assert _TRACE is None, "not reentrant"
      try:
          _TRACE = OrderedDict()
          _TRACE_FILTER_ARGS = filter_args
          yield _TRACE
      finally:
          _TRACE = None
          _TRACE_FILTER_ARGS = None
  
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 5 for calling a global function with example usage: trace_ops(filter_args) without return types