Minor fixes
Added check to ensure the Learner returnCode is OK. (#108) * Added check to ensure the Learner returnCode is OK. * Fixed black reformat. * Changed to check the from_shareable() explictly. * Added from_shareable(validate_result) in the try block.