code: def get_configuration_for_impersonation(cls, uri, impersonate_user, username):
          
          configuration = {}
          url = make_url(uri)
          backend_name = url.get_backend_name()
  
          # Must be Hive connection, enable impersonation, and set param auth=LDAP|KERBEROS
          if (backend_name == 'hive' and 'auth' in url.query.keys() and
                  impersonate_user is True and username is not None):
              configuration['hive.server2.proxy.user'] = username
          return configuration
docs: Return a configuration dictionary that can be merged with other configs
          that can set the correct properties for impersonating users
          :param uri: URI string
          :param impersonate_user: Bool indicating if impersonation is enabled
          :param username: Effective username
          :return: Dictionary with configs required for impersonation