code: def _call_history_load(history):
      """
      Helper: Call the history "load" method and return the result as a list of strings.
      """
      result = []
  
      async def call_load():
          async for item in history.load():
              result.append(item)
  
      run(call_load())
      return result
  
imports: from __future__ import annotations
  from asyncio import run
  from prompt_toolkit.history import FileHistory, InMemoryHistory, ThreadedHistory
label_desc: Use image node_id 1 for calling a global function with example usage: _call_history_load(history) and returns: result