code: def pack(self, data):
          
  
          try:
              return self.pack_any(data)
          except KeyError as e:
              raise Error('{} not found in data dictionary'.format(str(e)))
docs: See :func:`~bitstruct.pack_dict()`.