def parse_id(text):
  """ Parse and return the <job>:<id> string.
  Args:
    text String to parse
  Returns:
    This node's job name, this node's id
  """
  sep = text.rfind(":")
  if sep < -1:
    raise ValueError("Invalid ID format")
  nid = int(text[sep + 1:])
  if nid < 0:
    raise ValueError("Expected non-negative node ID")
  return text[:sep], nid