@staticmethod
def _get_idna_encoded_host(host):
    from oci._vendor import idna
    try:
        host = idna.encode(host, uts46=True).decode('utf-8')
    except idna.IDNAError:
        raise UnicodeError
    return host
@staticmethod
def _get_idna_encoded_host(host):
    from oci._vendor import idna
    try:
        host = idna.encode(host, uts46=True).decode('utf-8')
    except idna.IDNAError:
        raise UnicodeError
    return host