#NEWLINE# def parse_gcs_path( gcs_path ) : #NEWLINE# #INDENT# 'Return the bucket and object names of the given gs:// path.' #NEWLINE# match = re . match ( '^gs://([^/]+)/(.+)$' , gcs_path ) #NEWLINE# if ( match is None ) : #NEWLINE# #INDENT# raise ValueError ( 'GCS path must be in the form gs://<bucket>/<object>.' ) #NEWLINE# #UNINDENT# return ( match . group ( 1 ) , match . group ( 2 ) )