def METHOD_NAME(output_mode, container, subfolder):
    # Write the extracted tensor on a .pt file
    for filename, tensor in output_mode:
        output_file_dir = (
            caps_directory
            / container
            / "deeplearning_prepare_data"
            / subfolder
            / mod_subfolder
        )
        output_file_dir.mkdir(parents=True, exist_ok=True)
        output_file = output_file_dir / filename
        save_tensor(tensor, output_file)
        logger.debug(f"Output tensor saved at {output_file}")