code: def __init__(self, peer_id_bytes: bytes) -> None:
      self._bytes = peer_id_bytes
      self._xor_id = int(sha256_digest(self._bytes).hex(), 16)
      self._b58_str = base58.b58encode(self._bytes).decode()
  
imports: import hashlib
  from typing import Any, Sequence, Union
  import base58
  import multihash
  from cryptography.hazmat.primitives import serialization
  from multiaddr import Multiaddr, protocols
  from hivemind.proto import crypto_pb2, p2pd_pb2
label_desc: Use image node_id 1 to create a new PeerID object  with example: obj = PeerID(peer_id_bytes)