def true_fn(keypoint_heatmap, keypoint_offsets, keypoint_regression, classes, y_indices, x_indices, boxes, instance_inds, ex_ind, kp_params):
    'Logics to execute when instance_inds is not an empty set.'
    (kpt_coords_for_class, kpt_scores_for_class) = self._postprocess_keypoints_for_class_and_image(keypoint_heatmap, keypoint_offsets, keypoint_regression, classes, y_indices, x_indices, boxes, instance_inds, ex_ind, kp_params)
    (kpts_coords_for_class_padded, kpt_scores_for_class_padded) = _pad_to_full_keypoint_dim(kpt_coords_for_class, kpt_scores_for_class, kp_params.keypoint_indices, total_num_keypoints)
    return (kpts_coords_for_class_padded, kpt_scores_for_class_padded)
Logics to execute when instance_inds is not an empty set.
def true_fn(keypoint_heatmap, keypoint_offsets, keypoint_regression, classes, y_indices, x_indices, boxes, instance_inds, ex_ind, kp_params):
    
    (kpt_coords_for_class, kpt_scores_for_class) = self._postprocess_keypoints_for_class_and_image(keypoint_heatmap, keypoint_offsets, keypoint_regression, classes, y_indices, x_indices, boxes, instance_inds, ex_ind, kp_params)
    (kpts_coords_for_class_padded, kpt_scores_for_class_padded) = _pad_to_full_keypoint_dim(kpt_coords_for_class, kpt_scores_for_class, kp_params.keypoint_indices, total_num_keypoints)
    return (kpts_coords_for_class_padded, kpt_scores_for_class_padded)