def _get_storage_service(credentials):
if credentials is None:<EOL><INDENT>credentials = oauth2client.client.GoogleCredentials.get_application_default(<EOL>)<EOL><DEDENT>return discovery.build('<STR_LIT>', '<STR_LIT>', credentials=credentials)<EOL>
Get a storage client using the provided credentials or defaults.