[autotest] Script for testing label autodetection.

BUG=None
TEST=Ran it

Change-Id: I0c5f3f15a035e21db4dddf66eaf6fcf225229a4a
Reviewed-on: https://chromium-review.googlesource.com/204171
Reviewed-by: Alex Miller <milleral@chromium.org>
Tested-by: Alex Miller <milleral@chromium.org>
diff --git a/contrib/print_host_labels.py b/contrib/print_host_labels.py
new file mode 100755
index 0000000..6d83249
--- /dev/null
+++ b/contrib/print_host_labels.py
@@ -0,0 +1,14 @@
+#!/usr/bin/env python
+
+"""
+Usage:  ./print_host_labels.py IP.or.hostname.here
+"""
+
+import sys
+import common
+from autotest_lib.server.hosts import factory
+
+host = factory.create_host(sys.argv[1])
+labels = host.get_labels()
+print '\n\n\nLabels:\n'
+print labels