class_docstr: Control that shows the meta information of the selected completion.
class_docstr_tok: ["Control","that","shows","the","meta","information","of","the","selected","completion","."]
code: def preferred_height(
      self,
      width: int,
      max_available_height: int,
      wrap_lines: bool,
      get_line_prefix: GetLinePrefixCallable | None,
  ) -> int | None:
      return 1
  
imports: from __future__ import annotations
  import math
  from itertools import zip_longest
  from typing import TYPE_CHECKING, Callable, Iterable, Sequence, TypeVar, cast
  from weakref import WeakKeyDictionary
  from prompt_toolkit.application.current import get_app
  from prompt_toolkit.buffer import CompletionState
  from prompt_toolkit.completion import Completion
  from prompt_toolkit.data_structures import Point
  from prompt_toolkit.filters import Condition, FilterOrBool, has_completions, is_done, to_filter
  from prompt_toolkit.formatted_text import StyleAndTextTuples, fragment_list_width, to_formatted_text
  from prompt_toolkit.key_binding.key_processor import KeyPressEvent
  from prompt_toolkit.layout.utils import explode_text_fragments
  from prompt_toolkit.mouse_events import MouseEvent, MouseEventType
  from prompt_toolkit.utils import get_cwidth
  from .containers import ConditionalContainer, HSplit, ScrollOffsets, Window
  from .controls import GetLinePrefixCallable, UIContent, UIControl
  from .dimension import Dimension
  from .margins import ScrollbarMargin
label_desc: Use image node_id 2 for calling the _SelectedCompletionMetaControl obj's underlying member method code with example usage: obj.preferred_height(width, max_available_height, wrap_lines, get_line_prefix) and returns: int