code: def escape_local_name(name):
      # We need to support slashes in local names for compatibility, since this
      # naming scheme is being patched in to things like Layer.add_variable where
      # slashes were previously accepted. We also want to use slashes to indicate
      # edges traversed to reach the variable, so we escape forward slashes in
      # names.
      return name.replace(
          _ESCAPE_CHAR, _ESCAPE_CHAR + _ESCAPE_CHAR
      ).replace(r"/", _ESCAPE_CHAR + "S")
  
file_path: tensorflow-upstream/tensorflow/python/trackable/trackable_utils.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
label_desc: Use image node_id 3 for calling a global function with example usage: escape_local_name(name) and returns: name