code: def getid(node):
      if isinstance(node, ast.Attribute):
          return getid(node.value), node.attr
      if isinstance(node, ast.Name):
          return node.id
      return node
  
imports: from pythran.passmanager import Transformation
  import gast
label_desc: Use image node_id 1 for calling a global function with example usage: getid(node) and returns: node, getid,  node, node