code: def test_idprog(self):
      idprog = colorizer.idprog
      m = idprog.match("nospace")
      self.assertIsNone(m)
      m = idprog.match(" space")
      self.assertEqual(m.group(0), " space")
  
imports: from idlelib import colorizer
  from test.support import requires
  import unittest
  from unittest import mock
  from idlelib.idle_test.tkinter_testing_utils import run_in_tk_mainloop
  from functools import partial
  import textwrap
  from tkinter import Tk, Text
  from idlelib import config
  from idlelib.percolator import Percolator
label_desc: Use image node_id 4 for calling the FunctionTest obj's underlying member method code with example usage: obj.test_idprog() without return types