class_docstr: Simple class that holds information needed to run Tensorflow graph.
class_docstr_tok: ["Simple","class","that","holds","information","needed","to","run","Tensorflow","graph","."]
docstr: Returns a singleton TensorFlow scope with the given name.
  
  Used to prevent '_1'-appended scopes when sharing scopes with child classes.
  
  Args:
    name: String. Name scope for group of operations.
  Returns:
    tf.name_scope with the provided name.
docstr_tok: ["Returns","a","singleton","TensorFlow","scope","with","the","given","name",".","Used","to","prevent","'_1'-appended","scopes","when","sharing","scopes","with","child","classes",".","Args",":","name",":","String",".","Name","scope","for","group","of","operations",".","Returns",":","tf.name_scope","with","the","provided","name","."]
code: def shared_name_scope(name, graph, name_scopes):
      """Returns a singleton TensorFlow scope with the given name.
  
      Used to prevent '_1'-appended scopes when sharing scopes with child classes.
  
      Args:
        name: String. Name scope for group of operations.
      Returns:
        tf.name_scope with the provided name.
      """
      with graph.as_default():
          if name not in name_scopes:
              with tf.name_scope(name) as scope:
                  name_scopes[name] = scope
          return tf.name_scope(name_scopes[name])
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import unicode_literals
  import collections
  import pickle
  import os
  import time
  import warnings
  import numpy
  import pandas
  import tensorflow
  import tempfile
  from deepchem.models import Model
  from deepchem.metrics import from_one_hot
  from deepchem.nn import model_ops
  from deepchem.models.tensorflow_models import utils
  from deepchem.trans import undo_transforms
  from deepchem.utils.save import log
  from deepchem.utils.evaluate import Evaluator
  from deepchem.data import pad_features
  from tensorflow.contrib.layers.python.layers import batch_norm
label_desc: Use image node_id 3 for calling the TensorflowGraph obj's underlying member method code with example usage: obj.shared_name_scope(name, graph, name_scopes) and returns: tf