class_docstr: Two dimensional buffer of :class:`.Char` instances.
docstr: Get the cursor position for a given window.
  Returns a `Point`.
docstr_tok: ["Get","the","cursor","position","for","a","given","window",".","Returns","a","`","Point","`","."]
code: def get_cursor_position(self, window: Window) -> Point:
      """
      Get the cursor position for a given window.
      Returns a `Point`.
      """
      try:
          return self.cursor_positions[window]
      except KeyError:
          return Point(x=0, y=0)
  
imports: from __future__ import annotations
  from collections import defaultdict
  from typing import TYPE_CHECKING, Callable
  from prompt_toolkit.cache import FastDictCache
  from prompt_toolkit.data_structures import Point
  from prompt_toolkit.utils import get_cwidth
label_desc: Use image node_id 5 for calling the Screen obj's underlying member method code with example usage: obj.get_cursor_position(window) and returns: self, Point