code: def to_int(value: Callable[[], int] | int) -> int:
      "Turn callable or int into int."
      if callable(value):
          return to_int(value())
      else:
          return int(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 11 for calling a global function with example usage: to_int(value) and returns: to_int, int