code: def _get_user_input(fn, *args, **kwargs):
      # A basic loop to get user input and handle keyboard interrupt
      while True:
          try:
              ret = fn(*args, **kwargs)
              if ret:
                  break
          except KeyboardInterrupt:
              print("Aborted.")
              sys.exit()
  
file_path: ivy/scripts/backend_generation/generate.py
imports: import sys
  import subprocess
  import pprint
  import inspect
  import json
  from colorama import Fore, Style, init
  from importlib import import_module
  from importlib.util import find_spec
  from tree_generation import generate
  from shared import BackendNativeObject
  from dataclasses import asdict
label_desc: Use image node_id 1 for calling a global function with example usage: _get_user_input(fn) without return types