<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _check_file_io(self):
 """ Create and define logging directory """

        folder = 'Model' + str(self.flags['RUN_NUM']) + '/'
        folder_restore = 'Model' + str(self.flags['MODEL_RESTORE']) + '/'
        self.flags['RESTORE_DIRECTORY'] = self.flags['SAVE_DIRECTORY'] + self.flags[
            'MODEL_DIRECTORY'] + folder_restore
        self.flags['LOGGING_DIRECTORY'] = self.flags['SAVE_DIRECTORY'] + self.flags[
            'MODEL_DIRECTORY'] + folder
        self.make_directory(self.flags['LOGGING_DIRECTORY'])
        sys.stdout = Logger(self.flags['LOGGING_DIRECTORY'] + 'ModelInformation.log')
        print(self.flags)