def validate_pipeline(url, pipeline_id, auth, verify_ssl):
validate_result = requests.get(url + '<STR_LIT:/>' + pipeline_id + '<STR_LIT>', headers=X_REQ_BY, auth=auth, verify=verify_ssl)<EOL>validate_result.raise_for_status()<EOL>previewer_id = validate_result.json()['<STR_LIT>']<EOL>poll_validation_status(url, pipeline_id, previewer_id, auth, verify_ssl)<EOL>preview_result = requests.get(url + '<STR_LIT:/>' + pipeline_id + '<STR_LIT>' + validate_result.json()['<STR_LIT>'], headers=X_REQ_BY, auth=auth, verify=verify_ssl)<EOL>logging.debug('<STR_LIT>'.format(preview_result.content))<EOL>return preview_result.json()<EOL>
Validate a pipeline and show issues.

    Args:
        url         (str): the host url in the form 'http://host:port/'.
        pipeline_id (str): the ID of of the exported pipeline.
        auth      (tuple): a tuple of username, and password.
        verify_ssl (bool): whether to verify ssl certificates

    Returns:
        dict: the response json