code: def prefix_shared_name_attributes(meta_graph, absolute_import_scope):
    
    shared_name_attr = "shared_name"
    for node in meta_graph.graph_def.node:
      shared_name_value = node.attr.get(shared_name_attr, None)
      if shared_name_value and shared_name_value.HasField("s"):
        if shared_name_value.s:
          node.attr[shared_name_attr].s = tf.compat.as_bytes(
              prepend_name_scope(
                  shared_name_value.s, import_scope=absolute_import_scope))
docs: In-place prefixes shared_name attributes of nodes.