def METHOD_NAME(config, org_jobtype):
    if os.path.isdir(os.path.dirname(config["general"]["experiment_log_file"])):
        log_stuff = True
    if log_stuff:
        helpers.write_to_log(
            config,
            [
                org_jobtype,
                logfile_run_number,
                str(config["general"]["current_date"]),
                str(config["general"]["jobid"]),
                "- done",
            ],
        )
    if not logfile_handle == sys.stdout:
        logfile_handle.close()
    return config