docs: def find_device():
      """Selects a transport based on `TREZOR_PATH` environment variable.
  
      If unset, picks first connected device.
      """
      try:
          return get_transport(os.environ.get("TREZOR_PATH"))
      except Exception as e:  # pylint: disable=broad-except
          log.debug("Failed to find a Trezor device: %s", e)