code: def netconf_session_end_source_host(self, **kwargs):
          
          config = ET.Element("config")
          netconf_session_end = ET.SubElement(config, "netconf-session-end", xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-notifications")
          source_host = ET.SubElement(netconf_session_end, "source-host")
          source_host.text = kwargs.pop('source_host')
  
          callback = kwargs.pop('callback', self._callback)
          return callback(config)
docs: Auto Generated Code