def is_import(node):
 return (node.type in (syms.import_name, syms.import_from))

def is_import ( node ) : return ( node . type in ( syms . import_name , syms . import_from ) )
returns true if the node is an import statement .