def convert_es_fmt_to_uuid(es_label):
 if isinstance(es_label, six.text_type):
  es_label = es_label.encode('utf-8')
 if es_label.startswith('tmp-'):
  es_label = es_label[4:]
 es_label = es_label.ljust(32, '=')
 es_label = binascii.hexlify(base64.b32decode(es_label))
 if six.PY3:
  es_label = es_label.decode('ascii')
 return uuid.UUID(es_label)

def convert_es_fmt_to_uuid ( es_label ) : if isinstance ( es_label , six . text_type ) : es_label = es_label . encode ( 'utf-8' ) if es_label . startswith ( 'tmp-' ) : es_label = es_label [ 4 : ] es_label = es_label . ljust ( 32 , '=' ) es_label = binascii . hexlify ( base64 . b32decode ( es_label ) ) if six . PY3 : es_label = es_label . decode ( 'ascii' ) return uuid . UUID ( es_label )
converts e-series name format to uuid .