class_docstr: AutoDist is a scalable ML engine.
  
  AutoDist provides user-friendly interfaces to distribute local deep-learning model training
  across multiple processing units with scalability and minimal code changes.
  
  Args:
      resource_spec_file (str): file path of a resource specification yaml
      strategy_builder (base.StrategyBuilder): (optional) a strategy builder object
docstr: Create a context manager capturing the code block to be distributed.
  
  Yields:
      AutoDist context
docstr_tok: ["Create","a","context","manager","capturing","the","code","block","to","be","distributed",".","Yields",":","AutoDist","context"]
code: def scope(self):
      """
      Create a context manager capturing the code block to be distributed.
  
      Yields:
          AutoDist context
      """
      if not tf_context.executing_eagerly():
          self._initialize_graph()
      else:
          raise NotImplementedError(
              "AutoDist will support distributed execution under eager mode later."
          )
      with self._scope():
          yield
  
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 1 for calling the AutoDist obj's underlying member method code with example usage: obj.scope() without return types