def init(options):
<EOL>import matplotlib<EOL>matplotlib.use('<STR_LIT>')<EOL>livvkit.output_dir = os.path.abspath(options.out_dir)<EOL>livvkit.index_dir = livvkit.output_dir<EOL>livvkit.verify = True if options.verify is not None else False<EOL>livvkit.validate = True if options.validate is not None else False<EOL>livvkit.publish = options.publish<EOL>available_bundles = [mod for imp, mod, ispkg in pkgutil.iter_modules(bundles.__path__)]<EOL>if options.verify is not None:<EOL><INDENT>livvkit.model_dir = os.path.normpath(options.verify[<NUM_LIT:0>])<EOL>livvkit.bench_dir = os.path.normpath(options.verify[<NUM_LIT:1>])<EOL>if not os.path.isdir(livvkit.model_dir):<EOL><INDENT>print("<STR_LIT>")<EOL>print("<STR_LIT>")<EOL>print("<STR_LIT>")<EOL>print("<STR_LIT>")<EOL>print("<STR_LIT>")<EOL>print("<STR_LIT>")<EOL>print("<STR_LIT:\n>"+livvkit.model_dir+"<STR_LIT>")<EOL>sys.exit(<NUM_LIT:1>)<EOL><DEDENT>if not os.path.isdir(livvkit.bench_dir):<EOL><INDENT>print("<STR_LIT>")<EOL>print("<STR_LIT>")<EOL>print("<STR_LIT>")<EOL>print("<STR_LIT>")<EOL>print("<STR_LIT>")<EOL>print("<STR_LIT>")<EOL>print("<STR_LIT:\n>"+livvkit.bench_dir+"<STR_LIT>")<EOL>sys.exit(<NUM_LIT:1>)<EOL><DEDENT>livvkit.model_bundle = os.path.basename(livvkit.model_dir)<EOL>livvkit.bench_bundle = os.path.basename(livvkit.bench_dir)<EOL>if livvkit.model_bundle in available_bundles:<EOL><INDENT>livvkit.numerics_model_config = os.path.join(<EOL>livvkit.bundle_dir, livvkit.model_bundle, "<STR_LIT>")<EOL>livvkit.numerics_model_module = importlib.import_module(<EOL>"<STR_LIT:.>".join(["<STR_LIT>", livvkit.model_bundle, "<STR_LIT>"]))<EOL>livvkit.verification_model_config = os.path.join(<EOL>livvkit.bundle_dir, livvkit.model_bundle, "<STR_LIT>")<EOL>livvkit.verification_model_module = importlib.import_module(<EOL>"<STR_LIT:.>".join(["<STR_LIT>", livvkit.model_bundle, "<STR_LIT>"]))<EOL>livvkit.performance_model_config = os.path.join(<EOL>livvkit.bundle_dir, livvkit.model_bundle, "<STR_LIT>")<EOL><DEDENT>else:<EOL><INDENT>livvkit.verify = False<EOL><DEDENT><DEDENT>if options.validate is not None:<EOL><INDENT>livvkit.validation_model_configs = options.validate<EOL><DEDENT>if not (livvkit.verify or livvkit.validate) and not options.serve:<EOL><INDENT>print("<STR_LIT>")<EOL>print("<STR_LIT>")<EOL>print("<STR_LIT>")<EOL>print("<STR_LIT>")<EOL>print("<STR_LIT>")<EOL>print("<STR_LIT>")<EOL>print("<STR_LIT>")<EOL>print("<STR_LIT>")<EOL>print("<STR_LIT>")<EOL>print("<STR_LIT>")<EOL>print("<STR_LIT>")<EOL>print("<STR_LIT>")<EOL>sys.exit(<NUM_LIT:1>)<EOL><DEDENT>return options<EOL>
Initialize some defaults