code: def get_window_geometry(self, window_id):
      geometry = dict()
  
      x, y, width, height = win32gui.GetClientRect(window_id)
  
      geometry["width"] = width
      geometry["height"] = height
  
      x0, y0, x1, y1 = win32gui.GetWindowRect(window_id)
  
      border_width = (x1 - x0 - width) // 2
  
      geometry["x_offset"] = x0 + border_width
      geometry["y_offset"] = y0 + (y1 - y0 - height - border_width)
  
      return geometry
  
file_path: SerpentAI/serpent/window_controllers/win32_window_controller.py
imports: from serpent.window_controller import WindowController
  import win32gui
  import win32con
  import re
label_desc: Use image node_id 9 for calling the Win32WindowController obj's underlying member method code with example usage: obj.get_window_geometry(window_id) and returns: geometry