parameters: (prefix)
return_statement: return prefix + ("_%d" % idx)
docstring: Get a name with the given prefix unique in the current variable scope.
docstring_summary: Get a name with the given prefix unique in the current variable scope.
docstring_tokens: Get a name with the given prefix unique in the current variable scope .
function: def _get_unique_variable_scope(prefix):
    """Get a name with the given prefix unique in the current variable scope."""
    var_store = _get_default_variable_store()
    current_scope = get_variable_scope()
    name = current_scope.name + "/" + prefix if current_scope.name else prefix
    if var_store.variable_scope_count(name) == 0:
      return prefix
    idx = 1
    while var_store.variable_scope_count(name + ("_%d" % idx)) > 0:
      idx += 1
    return prefix + ("_%d" % idx)
function_tokens: def _get_unique_variable_scope ( prefix ) : var_store = _get_default_variable_store ( ) current_scope = get_variable_scope ( ) name = current_scope . name + "/" + prefix if current_scope . name else prefix if var_store . variable_scope_count ( name ) == 0 : return prefix idx = 1 while var_store . variable_scope_count ( name + ( "_%d" % idx ) ) > 0 : idx += 1 return prefix + ( "_%d" % idx )