code: def get_name_scope_name(name):
      """Returns the input name as a unique `tf.name_scope` name."""
      if name and name[-1] == "/":
          return name
      name = strip_invalid_chars(name)
      with tf.name_scope(name) as unique_name:
          pass
      return unique_name
  
file_path: probability/tensorflow_probability/python/internal/name_util.py
imports: import contextlib
  import re
  import tensorflow.compat.v1
  import tensorflow.compat.v2
label_desc: Use image node_id 3 for calling a global function with example usage: get_name_scope_name(name) and returns: unique_name, name