code: def sflow_sample_rate(self, **kwargs):
          
          config = ET.Element("config")
          sflow = ET.SubElement(config, "sflow", xmlns="urn:brocade.com:mgmt:brocade-sflow")
          sample_rate = ET.SubElement(sflow, "sample-rate")
          sample_rate.text = kwargs.pop('sample_rate')
  
          callback = kwargs.pop('callback', self._callback)
          return callback(config)
docs: Auto Generated Code