code: def demo(N=23):
      from nltk.grammar import CFG
  
      print(
          "Generating the first %d sentences for demo grammar:" % (N,)
      )
      print(demo_grammar)
      grammar = CFG.fromstring(demo_grammar)
      for n, sent in enumerate(generate(grammar, n=N), 1):
          print("%3d. %s" % (n, " ".join(sent)))
  
imports: import itertools
  import sys
  from nltk.grammar import Nonterminal
label_desc: Use image node_id 4 for calling a global function with example usage: demo(N) without return types