#NEWLINE# def create_jpg_file( filename , image_data ) : #NEWLINE# #INDENT# 'Create a public GCS object for the given image data in the\n    configured bucket.' #NEWLINE# gcs_file = gcs . open ( filename , 'w' , content_type = 'image/jpeg' , options = { #NEWLINE# #INDENT# 'x-goog-acl' : 'public-read' , #NEWLINE# #UNINDENT# } ) #NEWLINE# gcs_file . write ( image_data ) #NEWLINE# gcs_file . close ( ) #NEWLINE# return filename