def download_image(self, iso_download_path: str=None) -> Path:
    if (self._infra_env is None):
        log.warning('No infra_env found. Generating infra_env and downloading ISO')
        return self.generate_and_download_infra_env(iso_download_path=(iso_download_path or self._config.iso_download_path), iso_image_type=self._config.iso_image_type)
    return self._infra_env.download_image(iso_download_path)
def download_image(self, iso_download_path: str=None) -> Path:
    if (self._infra_env is None):
        log.warning('No infra_env found. Generating infra_env and downloading ISO')
        return self.generate_and_download_infra_env(iso_download_path=(iso_download_path or self._config.iso_download_path), iso_image_type=self._config.iso_image_type)
    return self._infra_env.download_image(iso_download_path)