def METHOD_NAME(self, state, trusted=True):
    super(XGBoostModel, self).METHOD_NAME(state['substate'])
    data = base64.decodebytes(state['tree_state'].encode('ascii'))
    filename = tempfile.mktemp()
    with open(filename, 'wb') as f:
        f.write(data)
    self.booster = xgboost.Booster(model_file=filename)