code: def find_device(vidpid):
      
      for port in list_ports.comports():
          if re.search(vidpid, port[2], flags=re.IGNORECASE):
              return port[0]
  
      raise exceptions.RoasterLookupError
docs: Finds a connected device with the given VID:PID. Returns the serial
      port url.