def validator(input_data):
global data<EOL>if input_data.ndim != <NUM_LIT:2>:<EOL><INDENT>return False, '<STR_LIT>'<EOL><DEDENT>if input_data.shape[<NUM_LIT:1>] != data.data.shape[<NUM_LIT:1>]:<EOL><INDENT>reason = '<STR_LIT>'.format(<EOL>data.data.shape[<NUM_LIT:1>], input_data.shape[<NUM_LIT:1>])<EOL>return False, reason<EOL><DEDENT>return True, None<EOL>
Simple model input validator.

    Validator ensures the input data array is
        - two dimensional
        - has the correct number of features.