def METHOD_NAME(self, peer_id: ID, protocols: Sequence[str]) -> None:
    """
    :param peer_id: peer ID to set protocols for
    :param protocols: protocols to set
    """
    peer_data = self.peer_data_map[peer_id]
    peer_data.METHOD_NAME(list(protocols))