code: def dump(self, force=False):
          
  
          contents = self.contents
  
          if self._header is None or force:
              if isinstance(self, Constructable) and self._indefinite:
                  self.method = 0
  
              header = _dump_header(self.class_, self.method, self.tag, self.contents)
  
              if self.explicit is not None:
                  for class_, tag in self.explicit:
                      header = _dump_header(class_, 1, tag, header + self.contents) + header
  
              self._header = header
              self._trailer = b''
  
          return self._header + contents
docs: Encodes the value using DER
  
          :param force:
              If the encoded contents already exist, clear them and regenerate
              to ensure they are in DER format instead of BER format
  
          :return:
              A byte string of the DER-encoded value