code: def from_protobuf(cls, pb_msg: p2pd_pb2.StreamInfo) -> "StreamInfo":
      stream_info = cls(
          peer_id=PeerID(pb_msg.peer),
          addr=Multiaddr(pb_msg.addr),
          proto=pb_msg.proto,
      )
      return stream_info
  
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 4 for calling the StreamInfo obj's underlying member method code with example usage: obj.from_protobuf(cls, pb_msg) and returns: stream_info