'Export the optimized pipeline as Python code.
Parameters
output_file_name: string
String containing the path and file name of the desired output file
Returns
None'

def export(self, output_file_name):

    if (self._optimized_pipeline is None):
        raise RuntimeError('A    pipeline    has    not    yet    been    optimized.    Please    call    fit()    first.')
    with open(output_file_name, 'w') as output_file:
        output_file.write(export_pipeline(self._optimized_pipeline, self.operators, self._pset))
