code: def enable_reentrant_dispatch():
      # NB: this can't simply be
      # `enable_reentrant_dispatch = torch._C._RestorePythonTLSSnapshot`
      # because:
      # 1. torch._C._RestorePythonTLSSnapshot is unavailable when this file
      #    initially gets imported. Probably an import order thing.
      # 2. enable_reentrant_dispatch is technically public API; assigning
      #    it the object would change the __module__ to look private.
      with torch._C._RestorePythonTLSSnapshot():
          try:
              yield
          finally:
              pass
  
imports: import __future__
  import collections
  import functools
  import types
  import warnings
  from typing import Dict, Set, List, Any, Callable, Iterable, Type, Tuple
  from functools import wraps
  import contextlib
  import torch
  from torch._C import _has_torch_function, _has_torch_function_unary, _has_torch_function_variadic, _add_docstr, _push_on_torch_function_stack, _pop_torch_function_stack, _get_function_stack_at, _len_torch_function_stack, _is_torch_function_mode_enabled
label_desc: Use image node_id 19 for calling a global function with example usage: enable_reentrant_dispatch() without return types