def is_raising(body):
 for node in body:
  if isinstance(node, astroid.Raise):
   return True
 return False

def is_raising ( body ) : for node in body : if isinstance ( node , astroid . Raise ) : return True return False
return true if the given statement node raise an exception .