parameters: (self)
return_statement: return next(self.iter_yield_exprs(), None) is not None
docstring: :return bool: Checks if a function is a generator or not.
docstring_summary: :return bool: Checks if a function is a generator or not.
docstring_tokens: : return bool : Checks if a function is a generator or not .
function: def is_generator(self):
          """
          :return bool: Checks if a function is a generator or not.
          """
          return next(self.iter_yield_exprs(), None) is not None
function_tokens: def is_generator ( self ) : return next ( self . iter_yield_exprs ( ) , None ) is not None