class_docstr: Interface for working with TFx.x Graph Mode.
docstr: Create a Session object to execute the default graph in a distributed manner.
docstr_tok: ["Create","a","Session","object","to","execute","the","default","graph","in","a","distributed","manner","."]
code: def _create_distributed_session(self):
      """Create a Session object to execute the default graph in a distributed manner."""
      if not self.is_built():
          self._build()
  
      _distributed_session = WrappedSession(
          cluster=self._cluster,
          graph_item=self._transformed_graph_item,
          remapper=self._remapper,
      )
  
      def _del(sess=_distributed_session):
          """Enforce the sess to be closed before the cluster termination in the atexit stack."""
          sess.close()
          logging.debug("Closing session...")
  
      atexit.register(_del)
  
      return _distributed_session
  
imports: import atexit
  import os
  from collections import namedtuple
  import numpy
  from tensorflow.python.eager import context
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import array_ops
  from tensorflow.python.util import tf_contextlib
  from autodist.cluster import Cluster, SSHCluster
  from autodist.const import ENV
  from autodist.coordinator import Coordinator
  from autodist.graph_item import GraphItem
  from autodist.kernel.device.resolver import DeviceResolver
  from autodist.kernel.graph_transformer import GraphTransformer
  from autodist.patch import PatchTensorFlow
  from autodist.remapper import Remapper
  from autodist.resource_spec import ResourceSpec
  from autodist.runner import WrappedSession
  from autodist.strategy import base
  from autodist.strategy.ps_lb_strategy import PSLoadBalancing
  from autodist.utils import logging
label_desc: Use image node_id 4 for calling the _GraphModeInterface obj's underlying member method code with example usage: obj._create_distributed_session() and returns: _distributed_session