def find_indentation(node):
 while (node is not None):
  if ((node.type == syms.suite) and (len(node.children) > 2)):
   indent = node.children[1]
   if (indent.type == token.INDENT):
    return indent.value
  node = node.parent
 return u''

def find_indentation ( node ) : while ( node is not None ) : if ( ( node . type == syms . suite ) and ( len ( node . children ) > 2 ) ) : indent = node . children [ 1 ] if ( indent . type == token . INDENT ) : return indent . value node = node . parent return u''
find the indentation of *node* .