def METHOD_NAME(document):
    import yamllint.cli  # pylint: disable=I0021,import-error
    my_print("Checking %r for proper yaml:" % document, style="blue")
    try:
        yamllint.cli.run([document])
    except SystemExit as e:
        lint_result = e.code
    else:
        sys.exit("Error, yamllint didn't raise expected SystemExit exception.")
    if lint_result != 0:
        sys.exit("Error, no lint clean yaml.")
    my_print("OK, yamllint passed.", style="blue")