def get_source_imgs(source_dataset, target_position, N_views, device, view_type='nearest', fixed_idxs=None, is_source_target_overlap=False):
    pair_idx = get_pair_idx(source_dataset, target_position, N_views, view_type, fixed_idxs, is_source_target_overlap)
    (imgs_source, proj_mats, near_far_source, pose_source) = source_dataset.read_source_views(pair_idx=pair_idx, device=device)
    return (imgs_source, proj_mats, near_far_source, pose_source)
def get_source_imgs(source_dataset, target_position, N_views, device, view_type='nearest', fixed_idxs=None, is_source_target_overlap=False):
    pair_idx = get_pair_idx(source_dataset, target_position, N_views, view_type, fixed_idxs, is_source_target_overlap)
    (imgs_source, proj_mats, near_far_source, pose_source) = source_dataset.read_source_views(pair_idx=pair_idx, device=device)
    return (imgs_source, proj_mats, near_far_source, pose_source)