def generate_jobs(
        self,
        args: dict | None = None,
        prev_stage_result: PREV_STAGE_RESULT = None,
    ) -> Generator[Job, None, None]:
        """Return an iterator based on the arguments.

        This can be used to generate the configurations that will be passed to run.
        """
Return an iterator based on the arguments.

        This can be used to generate the configurations that will be passed to run.
        
src/anomalib/pipelines/components/base/job.py