def METHOD_NAME(self, jobs: Dict[str, BaseNode]) -> Optional[str]:
    if isinstance(self._finalize_job, str):
        return self._finalize_job
    for name, job in jobs.items():
        if id(self.finalize_job) == id(job):
            return name
    module_logger.warning("Finalization job setting is ignored as cannot find corresponding job node.")
    return None