def parse_gcs_uri(uri):
 components = urlparse(uri)
 if ((components.scheme != 'gs') or ('/' not in components.path)):
  raise ValueError(('Invalid GCS URI: %s' % uri))
 return (components.netloc, components.path[1:])

def parse_gcs_uri ( uri ) : components = urlparse ( uri ) if ( ( components . scheme != 'gs' ) or ( '/' not in components . path ) ) : raise ValueError ( ( 'Invalid GCS URI: %s' % uri ) ) return ( components . netloc , components . path [ 1 : ] )
parse a gcs uri into .