code: def test_is_generator(self, node, expected):
      assert node.is_generator() is expected.get("is_generator", False)
  
imports: from textwrap import dedent
  import pytest
  from parso import parse
  from parso.python import tree
label_desc: Use image node_id 5 for calling the TestsFunctionAndLambdaParsing obj's underlying member method code with example usage: obj.test_is_generator(node, expected) without return types