code: def reset_dtensor_device(is_async: bool) -> None:
      """Resets the Eager execution device for DTensor.
  
      This function is only intended for testing and diagnostics.
  
      Args:
        is_async: If True, the device uses async execution.
      """
      global _dtensor_singleton
      device = dtensor_device.DTensorDevice(
          meshes=[], is_async=is_async
      )
      _dtensor_singleton = device
  
imports: import contextlib
  import threading
  from typing import Any, Callable, Optional, Sequence
  from tensorflow.dtensor.python import dtensor_device
  from tensorflow.dtensor.python import gen_dtensor_ops
  from tensorflow.dtensor.python import layout
  from tensorflow.python.eager import context
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor
  from tensorflow.python.util import deprecation
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 14 for calling a global function with example usage: reset_dtensor_device(is_async) without return types