def detect_labels_cloud_storage(uri):
 vision_client = vision.Client()
 image = vision_client.image(source_uri=uri)
 labels = image.detect_labels()
 print 'Labels:'
 for label in labels:
  print label.description

def detect_labels_cloud_storage ( uri ) : vision_client = vision . Client ( ) image = vision_client . image ( source_uri = uri ) labels = image . detect_labels ( ) print 'Labels:' for label in labels : print label . description
detects labels in the file located in google cloud storage .