<s> import argparse <EOL> import logging <EOL> from configuration_parsing import is_config_valid <EOL> from evaluation_creation import generate_evaluation_from_config <EOL> from plot_generation import plot_from_config <EOL> import yaml <EOL> logging . basicConfig ( ) <EOL> logger = logging . getLogger ( __name__ ) <EOL> def run_evaluation_from_config ( config_file_path , ignore_config_errors = False ) : <EOL> """<STR_LIT>""" <EOL> config = yaml . load ( open ( config_file_path , '<STR_LIT:r>' ) ) <EOL> if not ignore_config_errors and not is_config_valid ( config ) : <EOL> logger . warning ( <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> ) <EOL> sys . exit ( <NUM_LIT:1> ) <EOL> evaluation = generate_evaluation_from_config ( config ) <EOL> if evaluation . _evaluation_is_valid ( ) : <EOL> evaluation . run ( ) <EOL> plot_from_config ( evaluation , config ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> description = '<STR_LIT>' <EOL> epilog = '<STR_LIT>' <EOL> parser = argparse . ArgumentParser ( description = description , epilog = epilog ) <EOL> parser . add_argument ( '<STR_LIT>' , help = '<STR_LIT>' ) <EOL> parser . add_argument ( '<STR_LIT>' , nargs = '<STR_LIT:?>' , default = False , type = bool ) <EOL> args = parser . parse_args ( ) <EOL> run_evaluation_from_config ( args . config , args . ignore_config_errors ) </s>
