code: def split_uid(
      uid_or_prefix: Union[ExpertUID, ExpertPrefix]
  ) -> Tuple[ExpertPrefix, Coordinate]:
      """Separate an expert UID or prefix into a new ExpertPrefix and integer for the last coordinate"""
      uid_or_prefix = uid_or_prefix.rstrip(UID_DELIMITER)
      pivot = uid_or_prefix.rindex(UID_DELIMITER) + 1
      return uid_or_prefix[:pivot], int(uid_or_prefix[pivot:])
  
imports: from __future__ import annotations
  import re
  from typing import NamedTuple, Tuple, Union
  from hivemind.p2p import PeerID
label_desc: Use image node_id 3 for calling a global function with example usage: split_uid(uid_or_prefix) and returns: uid_or_prefix,  int