code: def confd_state_rest_listen_tcp_ip(self, **kwargs):
          
          config = ET.Element("config")
          confd_state = ET.SubElement(config, "confd-state", xmlns="http://tail-f.com/yang/confd-monitoring")
          rest = ET.SubElement(confd_state, "rest")
          listen = ET.SubElement(rest, "listen")
          tcp = ET.SubElement(listen, "tcp")
          ip = ET.SubElement(tcp, "ip")
          ip.text = kwargs.pop('ip')
  
          callback = kwargs.pop('callback', self._callback)
          return callback(config)
docs: Auto Generated Code