code: def l2traceroute_input_protocolType_IP_l4protocol(self, **kwargs):
          
          config = ET.Element("config")
          l2traceroute = ET.Element("l2traceroute")
          config = l2traceroute
          input = ET.SubElement(l2traceroute, "input")
          protocolType = ET.SubElement(input, "protocolType")
          IP = ET.SubElement(protocolType, "IP")
          l4protocol = ET.SubElement(IP, "l4protocol")
          l4protocol.text = kwargs.pop('l4protocol')
  
          callback = kwargs.pop('callback', self._callback)
          return callback(config)
docs: Auto Generated Code