def _process_images(zvm_images):
    for image in zvm_images:
        image_split = image.split(',')
        # mount_dir and access_type are optional,
        # so defaults are provided:
        mount_dir = _DEFAULT_MOUNT_DIR
        access_type = _DEFAULT_MOUNT_ACCESS

        if len(image_split) == 1:
            path = image_split[0]
        elif len(image_split) == 2:
            path, mount_dir = image_split
        elif len(image_split) == 3:
            path, mount_dir, access_type = image_split

        yield path, mount_dir, access_type
Process a list of the --zvm-image arguments and split them into the
dataset/ETHPy150Open zerovm/zerovm-cli/zvshlib/zvsh.py/_process_images