human
Complete this python program:
def __get_conn():
assistant
#Here is the Python code you requested.

    """Detects what type of dom this node is and attempts to connect to the
    correct hypervisor via libvirt.
    """
    def __esxi_uri():
        '\n                                Connect    to    an    ESXi    host    with    a    configuration    like    so:\n\n                                ..    code-block::    yaml\n\n                                                libvirt:\n                                                        hypervisor:    esxi\n                                                        connection:    esx01\n\n                                The    connection    setting    can    either    be    an    explicit    libvirt    URI,\n                                or    a    libvirt    URI    alias    as    in    this    example.    No,    it    cannot    be\n                                just    a    hostname.\n\n\n                                Example    libvirt    `/etc/libvirt/libvirt.conf`:\n\n                                ..    code-block::\n\n                                                uri_aliases    =    [\n                                                        "esx01=esx://10.1.1.101/?no_verify=1&auto_answer=1",\n                                                        "esx02=esx://10.1.1.102/?no_verify=1&auto_answer=1",\n                                                ]\n\n                                Reference:\n\n                                    -    http://libvirt.org/drvesx.html#uriformat\n                                    -    http://libvirt.org/uri.html#URI_config\n                                '
        connection = __salt__['config.get']('libvirt:connection', 'esx')
        return connection
    def __esxi_auth():
        '\n                                We    rely    on    that    the    credentials    is    provided    to    libvirt    through\n                                its    built    in    mechanisms.\n\n                                Example    libvirt    `/etc/libvirt/auth.conf`:\n\n                                ..    code-block::\n\n                                                [credentials-myvirt]\n                                            ...