def generate_jobs(
        self,
        args: dict | None = None,
        prev_stage_result: list[Any] | None = None,
    ) -> Generator[SmoothingJob, None, None]:
        """Return a generator producing a single seam smoothing job.

        Args:
            args: Tiled ensemble pipeline args.
            prev_stage_result (list[Any]): Ensemble predictions from previous step.

        Returns:
            Generator[SmoothingJob, None, None]: SmoothingJob generator
        """
        if args is None:
            msg = "SeamSmoothing job requires config args"
            raise ValueError(msg)
        # tiler is used to determine where seams appear
        tiler = get_ensemble_tiler(self.tiling_args)
        if prev_stage_result is not None:
            yield SmoothingJob(
                accelerator=self.accelerator,
                predictions=prev_stage_result,
                width_factor=args["width"],
                filter_sigma=args["sigma"],
                tiler=tiler,
            )
        else:
            msg = "Join smoothing job requires tile level predictions from previous step."
            raise ValueError(msg)
Return a generator producing a single seam smoothing job.

        Args:
            args: Tiled ensemble pipeline args.
            prev_stage_result (list[Any]): Ensemble predictions from previous step.

        Returns:
            Generator[SmoothingJob, None, None]: SmoothingJob generator
        
src/anomalib/pipelines/tiled_ensemble/components/smoothing.py