def get_variables_in_scope(scope, collection=tf.GraphKeys.TRAINABLE_VARIABLES):
 scope_name = (re.escape(scope.name) + '/')
 return tuple(tf.get_collection(collection, scope_name))

def get_variables_in_scope ( scope , collection = tf . GraphKeys . TRAINABLE_VARIABLES ) : scope_name = ( re . escape ( scope . name ) + '/' ) return tuple ( tf . get_collection ( collection , scope_name ) )
returns a tuple tf .