code: def temp_enable_text_widget(text):
      text.configure(state=tk.NORMAL)
      try:
          yield
      finally:
          text.configure(state=tk.DISABLED)
  
imports: import contextlib
  import functools
  import itertools
  import tkinter
  from tkinter.font import Font
  from idlelib.config import idleConf
  from idlelib.delegator import Delegator
  from idlelib import macosx
label_desc: Use image node_id 5 for calling a global function with example usage: temp_enable_text_widget(text) without return types