code: def _oops_dump_state(self, ignore_remaining_data=False):
          
          log_error("==Oops state dump" + "=" * (30 - 17))
          log_error("References: {0}".format(self.references))
          log_error("Stream seeking back at -16 byte (2nd line is an actual position!):")
  
          # Do not use a keyword argument
          self.object_stream.seek(-16, os.SEEK_CUR)
          position = self.object_stream.tell()
          the_rest = self.object_stream.read()
  
          if not ignore_remaining_data and len(the_rest):
              log_error(
                  "Warning!!!!: Stream still has {0} bytes left:\n{1}".format(
                      len(the_rest), self._create_hexdump(the_rest, position)
                  )
              )
  
          log_error("=" * 30)
docs: Log a deserialization error
  
          :param ignore_remaining_data: If True, don't log an error when
                                        unused trailing bytes are remaining