@classmethod
def get(cls, project_id, recommendation_type=None):
    """
        Retrieves the default or specified by recommendation_type recommendation.

        Parameters
        ----------
        project_id : str
            The project's id.
        recommendation_type : enums.RECOMMENDED_MODEL_TYPE
            The type of recommendation to get. If None, returns the default recommendation.

        Returns
        -------
        recommended_model : ModelRecommendation

        """
    if recommendation_type is None:
        url = cls._base_recommended_path_template.format(project_id
            ) + 'recommendedModel/'
        return cls.from_location(url)
    else:
        recommendations = cls.get_all(project_id)
        return cls.get_recommendation(recommendations, recommendation_type)
