def export_pipeline(exported_pipeline):
 pipeline_tree = expr_to_tree(exported_pipeline)
 pipeline_text = generate_import_code(exported_pipeline)
 pipeline_text += pipeline_code_wrapper(generate_pipeline_code(pipeline_tree))
 return pipeline_text

def export_pipeline ( exported_pipeline ) : pipeline_tree = expr_to_tree ( exported_pipeline ) pipeline_text = generate_import_code ( exported_pipeline ) pipeline_text += pipeline_code_wrapper ( generate_pipeline_code ( pipeline_tree ) ) return pipeline_text
generates the source code of a tpot pipeline parameters exported_pipeline: deap .