code: def _add_peers(self, rank: int, peers: List[int]) -> None:
      for peer in peers:
          if peer not in self.phone_book[rank]:
              self.phone_book[rank].append(
                  Edge(
                      local_master_rank=(
                          self.rank * self.nprocs_per_node
                      ),
                      dest=(peer * self.nprocs_per_node),
                      src=(rank * self.nprocs_per_node),
                      local_rank=self.local_rank,
                  )
              )
  
imports: from abc import ABC, abstractmethod
  from math import log
  from typing import List, Optional, Tuple
  import torch
  import torch.distributed
label_desc: Use image node_id 5 for calling the GraphManager obj's underlying member method code with example usage: obj._add_peers(rank, peers) without return types