code: def copy_experiment(experiment):
      
      try:
          publisher.publish_experiment_job_log(
              log_lines='Copying outputs from experiment `{}` into experiment `{}`'.format(
                  experiment.original_experiment.unique_name, experiment.unique_name
              ),
              experiment_uuid=experiment.uuid.hex,
              experiment_name=experiment.unique_name,
              job_uuid='all',
          )
          stores.copy_experiment_outputs(
              persistence_outputs_from=experiment.original_experiment.persistence_outputs,
              persistence_outputs_to=experiment.persistence_outputs,
              experiment_name_from=experiment.original_experiment.unique_name,
              experiment_name_to=experiment.unique_name)
  
      except OSError:
          publisher.publish_experiment_job_log(
              log_lines='Could not copy the outputs of experiment `{}` into experiment `{}`'.format(
                  experiment.original_experiment.unique_name, experiment.unique_name
              ),
              experiment_uuid=experiment.uuid.hex,
              experiment_name=experiment.unique_name,
              job_uuid='all',
          )
          _logger.warning(
              'Could not copy the outputs of experiment `%s` into experiment `%s`',
              experiment.original_experiment.unique_name, experiment.unique_name)
docs: If experiment is a restart, we should resume from last check point