def METHOD_NAME(self, format_version, batch_id, job_id, attempt_id, task):
    if not format_version.has_attempt_in_log_path():
        return f'{self.batch_log_dir(batch_id)}/{job_id}/{task}/resource_usage'
    return f'{self.batch_log_dir(batch_id)}/{job_id}/{attempt_id}/{task}/resource_usage'