code: def _hasReturnValue(self, node):
          
          returnFound = False
          for subnode in node.body:
              if type(subnode) == node_classes.Return and subnode.value:
                  returnFound = True
                  break
          return returnFound
docs: Determine whether the given method or function has a return statement.
  
          @param node: the node currently checks