<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _get_scale_and_shape(self, transformed_lvs):
 """ Obtains model scale, shape and skewness latent variables Parameters transformed_lvs : np.array Transformed latent variable vector Returns - Tuple of model scale, model shape, model skewness """


        if self.scale is True:
            if self.shape is True:
                model_shape = transformed_lvs[-1]  
                model_scale = transformed_lvs[-2]
            else:
                model_shape = 0
                model_scale = transformed_lvs[-1]
        else:
            model_scale = 0
            model_shape = 0 

        if self.skewness is True:
            model_skewness = transformed_lvs[-3]
        else:
            model_skewness = 0

        return model_scale, model_shape, model_skewness