def METHOD_NAME(self, state, trusted=True):
    super(LightGBMModel, 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 = lightgbm.Booster(model_file=filename)