code: def unpickle_bytestream(
      b: bytes | bytearray | memoryview,
  ) -> Iterator[Any]:
      """Unpickle the concatenated output of multiple calls to :func:`pickle_bytelist`
  
      See Also
      --------
      pickle_bytelist
      deserialize_bytes
      """
      while True:
          pik, *buffers, remainder = unpack_frames(b, remainder=True)
          yield pickle.loads(pik, buffers=buffers)
          if remainder.nbytes == 0:
              break
          b = remainder
  
imports: from __future__ import annotations
  import pickle
  from collections.abc import Iterator
  from typing import Any
  from distributed.protocol.utils import pack_frames_prelude, unpack_frames
label_desc: Use image node_id 2 for calling a global function with example usage: unpickle_bytestream(b) without return types