class_docstr: a dictionary-like DHT value type that maps sub-keys to values with individual expirations
class_docstr_tok: ["a","dictionary-like","DHT","value","type","that","maps","sub-keys","to","values","with","individual","expirations"]
docstr: custom behavior for MSGPackSerializer.dumps
docstr_tok: ["custom","behavior","for","MSGPackSerializer.dumps"]
code: def packb(self) -> bytes:
      """custom behavior for MSGPackSerializer.dumps"""
      packed_items = [
          [key, value, expiration_time]
          for key, (value, expiration_time) in self.items()
      ]
      return MSGPackSerializer.dumps(
          [self.maxsize, self.latest_expiration_time, packed_items]
      )
  
file_path: hivemind/hivemind/dht/storage.py
imports: from __future__ import annotations
  from typing import Optional, Union
  from hivemind.dht.routing import DHTID, BinaryDHTValue, Subkey
  from hivemind.utils.serializer import MSGPackSerializer
  from hivemind.utils.timed_storage import DHTExpiration, KeyType, TimedStorage, ValueType
label_desc: Use image node_id 2 for calling the DictionaryDHTValue obj's underlying member method code with example usage: obj.packb() and returns: MSGPackSerializer