code: def tocimxml(self):
          
          return cim_xml.METHOD(
              self.name,
              parameters=[p.tocimxml() for p in self.parameters.values()],
              return_type=self.return_type,
              class_origin=self.class_origin,
              propagated=self.propagated,
              qualifiers=[q.tocimxml() for q in self.qualifiers.values()])
docs: Return the CIM-XML representation of this CIM method,
          as an object of an appropriate subclass of :term:`Element`.
  
          The returned CIM-XML representation is a `METHOD` element consistent
          with :term:`DSP0201`.
  
          The order of parameters and qualifiers in the returned CIM-XML
          representation is preserved from the :class:`~pywbem.CIMMethod` object.
  
          Returns:
  
            The CIM-XML representation, as an object of an appropriate subclass
            of :term:`Element`.