@classmethod
def create_from_learning_model(cls, model_id, label, description=None,
    default_prediction_server_id=None):
    """Create a deployment from a DataRobot model.

        .. versionadded:: v2.17

        Parameters
        ----------
        model_id : str
            id of the DataRobot model to deploy
        label : str
            a human readable label of the deployment
        description : str, optional
            a human readable description of the deployment
        default_prediction_server_id : str
            an identifier of a prediction server to be used as the default prediction server

        Returns
        -------
        deployment : Deployment
            The created deployment

        Examples
        --------
        .. code-block:: python

            from datarobot import Project, Deployment
            project = Project.get('5506fcd38bd88f5953219da0')
            model = project.get_models()[0]
            deployment = Deployment.create_from_learning_model(model.id, 'New Deployment')
            deployment
            >>> Deployment('New Deployment')
        """
    payload = {'model_id': model_id, 'label': label, 'description': description
        }
    if default_prediction_server_id:
        payload['default_prediction_server_id'] = default_prediction_server_id
    url = '{}fromLearningModel/'.format(cls._path)
    deployment_id = cls._client.post(url, data=payload).json()['id']
    return cls.get(deployment_id)
