code: def netconf_state_sessions_session_username(self, **kwargs):
          
          config = ET.Element("config")
          netconf_state = ET.SubElement(config, "netconf-state", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring")
          sessions = ET.SubElement(netconf_state, "sessions")
          session = ET.SubElement(sessions, "session")
          session_id_key = ET.SubElement(session, "session-id")
          session_id_key.text = kwargs.pop('session_id')
          username = ET.SubElement(session, "username")
          username.text = kwargs.pop('username')
  
          callback = kwargs.pop('callback', self._callback)
          return callback(config)
docs: Auto Generated Code