code: def test_accept_default():
      """
      Test `prompt(accept_default=True)`.
      """
      with create_pipe_input() as inp:
          session = PromptSession(input=inp, output=DummyOutput())
          result = session.prompt(default="hello", accept_default=True)
          assert result == "hello"
  
          # Test calling prompt() for a second time. (We had an issue where the
          # prompt reset between calls happened at the wrong time, breaking this.)
          result = session.prompt(default="world", accept_default=True)
          assert result == "world"
  
imports: from __future__ import annotations
  from functools import partial
  import pytest
  from prompt_toolkit.clipboard import ClipboardData, InMemoryClipboard
  from prompt_toolkit.enums import EditingMode
  from prompt_toolkit.filters import ViInsertMode
  from prompt_toolkit.history import InMemoryHistory
  from prompt_toolkit.input.defaults import create_pipe_input
  from prompt_toolkit.input.vt100_parser import ANSI_SEQUENCES
  from prompt_toolkit.key_binding.bindings.named_commands import prefix_meta
  from prompt_toolkit.key_binding.key_bindings import KeyBindings
  from prompt_toolkit.output import DummyOutput
  from prompt_toolkit.shortcuts import PromptSession
label_desc: Use image node_id 36 for calling a global function with example usage: test_accept_default() without return types