code: def export(self, output_file_name, data_file_path=''):
          
          if self._optimized_pipeline is None:
              raise RuntimeError('A pipeline has not yet been optimized. Please call fit() first.')
  
          to_write = export_pipeline(self._optimized_pipeline,
                                      self.operators, self._pset,
                                      self._imputed, self._optimized_pipeline_score,
                                      self.random_state,
                                      data_file_path=data_file_path)
  
          with open(output_file_name, 'w') as output_file:
              output_file.write(to_write)
docs: Export the optimized pipeline as Python code.
  
          Parameters
          ----------
          output_file_name: string
              String containing the path and file name of the desired output file
          data_file_path: string (default: '')
              By default, the path of input dataset is 'PATH/TO/DATA/FILE' by default.
              If data_file_path is another string, the path will be replaced.
  
          Returns
          -------
          False if it skipped writing the pipeline to file
          True if the pipeline was actually written