class_docstr: :param text: The new string that will be inserted into the document.
  :param start_position: Position relative to the cursor_position where the
      new text will start. The text will be inserted between the
      start_position and the original cursor position.
  :param display: (optional string or formatted text) If the completion has
      to be displayed differently in the completion menu.
  :param display_meta: (Optional string or formatted text) Meta information
      about the completion, e.g. the path or source where it's coming from.
      This can also be a callable that returns a string.
  :param style: Style string.
  :param selected_style: Style string, used for a selected completion.
      This can override the `style` parameter.
class_docstr_tok: [":","param","text",":","The","new","string","that","will","be","inserted","into","the","document",".",":","param","start_position",":","Position","relative","to","the","cursor_position","where","the","new","text","will","start",".","The","text","will","be","inserted","between","the","start_position","and","the","original","cursor","position",".",":","param","display",":","(","optional","string","or","formatted","text",")","If","the","completion","has","to","be","displayed","differently","in","the","completion","menu",".",":","param","display_meta",":","(","Optional","string","or","formatted","text",")","Meta","information","about","the","completion",",","e.g",".","the","path","or","source","where","it","'s","coming","from",".","This","can","also","be","a","callable","that","returns","a","string",".",":","param","style",":","Style","string",".",":","param","selected_style",":","Style","string",",","used","for","a","selected","completion",".","This","can","override","the","`","style","`","parameter","."]
docstr: The 'display' field as plain text.
docstr_tok: ["The","'display","'","field","as","plain","text","."]
code: def display_text(self) -> str:
      "The 'display' field as plain text."
      from prompt_toolkit.formatted_text import fragment_list_to_text
  
      return fragment_list_to_text(self.display)
  
imports: from __future__ import annotations
  from abc import ABCMeta, abstractmethod
  from typing import AsyncGenerator, Callable, Iterable, Sequence
  from prompt_toolkit.document import Document
  from prompt_toolkit.eventloop import aclosing, generator_to_async_generator
  from prompt_toolkit.filters import FilterOrBool, to_filter
  from prompt_toolkit.formatted_text import AnyFormattedText, StyleAndTextTuples
label_desc: Use image node_id 5 for calling the Completion obj's underlying member method code with example usage: obj.display_text() and returns: fragment_list_to_text