code: def to_str(value: Callable[[], str] | str) -> str:
      "Turn callable or string into string."
      if callable(value):
          return to_str(value())
      else:
          return str(value)
  
imports: from __future__ import annotations
  import os
  import signal
  import sys
  import threading
  from collections import deque
  from typing import Callable, ContextManager, Dict, Generator, Generic, TypeVar, Union
  from wcwidth import wcwidth
label_desc: Use image node_id 10 for calling a global function with example usage: to_str(value) and returns: to_str, str