def histogram_async(image_data, rpc=None):
 image = Image(image_data)
 return image.histogram_async(rpc)

def histogram_async ( image_data , rpc = None ) : image = Image ( image_data ) return image . histogram_async ( rpc )
calculates the histogram of the given image - async version .