code: def locate_window(self, name):
      global window_id
      window_id = win32gui.FindWindow(None, name)
  
      if window_id != 0:
          return window_id
  
      def callback(wid, pattern):
          global window_id
  
          if (
              re.match(pattern, str(win32gui.GetWindowText(wid)))
              is not None
          ):
              window_id = wid
  
      win32gui.EnumWindows(callback, name)
  
      return window_id
  
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 2 for calling the Win32WindowController obj's underlying member method code with example usage: obj.locate_window(name) and returns: window_id, window_id