code: def _opname_creation_prehook(layer, inputs):
      from paddle.static import name_scope
  
      global _name_scope_stack
      _name_scope_stack.append(name_scope(layer.full_name()))
      _name_scope_stack[-1].__enter__()
  
imports: from collections import Counter
  from collections import deque
label_desc: Use image node_id 2 for calling a global function with example usage: _opname_creation_prehook(layer, inputs) without return types