code: def get_current_name_scope():
    
    # pylint: disable=protected-access
    g = tf.get_default_graph()
    # TODO(eiderman): Remove this hack once TF update is released.
    if isinstance(g._name_stack, tuple):
      return g._name_stack[0] + '/'
    else:
      return g._name_stack + '/'
docs: Gets the current name scope.