code: def __init__(
      self, xpos: int, ypos: int, width: int, height: int
  ) -> None:
      assert height >= 0
      assert width >= 0
      # xpos and ypos can be negative. (A float can be partially visible.)
  
      self.xpos = xpos
      self.ypos = ypos
      self.width = width
      self.height = height
  
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 1 to create a new WritePosition object  with example: obj = WritePosition(xpos, ypos, width, height)