docstr: Since we pick the newest route has the highest priority, we
  update the priority of the newly added routes here to be increments of
  current routes' highest priority.
docstr_tok: ["Since","we","pick","the","newest","route","has","the","highest","priority",",","we","update","the","priority","of","the","newly","added","routes","here","to","be","increments","of","current","routes","'","highest","priority","."]
code: def update_route_priorities(
      self, new_routes: List[NodeRoute]
  ) -> List[NodeRoute]:
      """
      Since we pick the newest route has the highest priority, we
      update the priority of the newly added routes here to be increments of
      current routes' highest priority.
      """
      current_max_priority = max(
          route.priority for route in self.node_routes
      )
      for route in new_routes:
          route.priority = current_max_priority + 1
          current_max_priority += 1
      return new_routes
  
imports: from typing import List
  from typing import Optional
  from typing import Tuple
  from typing_extensions import Self
  from ...abstract_node import NodeType
  from ...client.client import SyftClient
  from ...node.credentials import SyftSigningKey
  from ...node.credentials import SyftVerifyKey
  from ...serde.serializable import serializable
  from ...service.response import SyftError
  from ...types.syft_object import SYFT_OBJECT_VERSION_1
  from ...types.syft_object import SyftObject
  from ...types.uid import UID
  from ..context import NodeServiceContext
  from ..metadata.node_metadata import NodeMetadataV3
  from .routes import HTTPNodeRoute
  from .routes import NodeRoute
  from .routes import NodeRouteType
  from .routes import connection_to_route
  from .routes import route_to_connection
label_desc: Use image node_id 2 for calling the NodePeer obj's underlying member method code with example usage: obj.update_route_priorities(new_routes) and returns: new_routes