def _get_profile_image_urls(name, storage, file_extension=PROFILE_IMAGE_FILE_EXTENSION, version=None):
 def _make_url(size):
  url = storage.url(_get_profile_image_filename(name, size, file_extension=file_extension))
  return ('{}?v={}'.format(url, version) if (version is not None) else url)
 return {size_display_name: _make_url(size) for (size_display_name, size) in PROFILE_IMAGE_SIZES_MAP.items()}

def _get_profile_image_urls ( name , storage , file_extension = PROFILE_IMAGE_FILE_EXTENSION , version = None ) : def _make_url ( size ) : url = storage . url ( _get_profile_image_filename ( name , size , file_extension = file_extension ) ) return ( '{}?v={}' . format ( url , version ) if ( version is not None ) else url ) return { size_display_name : _make_url ( size ) for ( size_display_name , size ) in PROFILE_IMAGE_SIZES_MAP . items ( ) }
returns a dict containing the urls for a complete set of profile images .