code: def _cmp(self, other):
          
          if self is other:
              return 0
          try:
              assert isinstance(other, CIMQualifierDeclaration)
          except AssertionError:
              raise TypeError(
                  _format("other must be CIMQualifierDeclaration, but is: {0}",
                          type(other)))
          return (cmpname(self.name, other.name) or
                  cmpitem(self.type, other.type) or
                  cmpitem(self.value, other.value) or
                  cmpitem(self.is_array, other.is_array) or
                  cmpitem(self.array_size, other.array_size) or
                  cmpdict(self.scopes, other.scopes) or
                  cmpitem(self.overridable, other.overridable) or
                  cmpitem(self.tosubclass, other.tosubclass) or
                  cmpitem(self.toinstance, other.toinstance) or
                  cmpitem(self.translatable, other.translatable))
docs: Comparator function for two :class:`~pywbem.CIMQualifierDeclaration`
          objects.
  
          The comparison is based on their public attributes, in descending
          precedence:
  
          * `name`
          * `type`
          * `value`
          * `is_array`
          * `array_size`
          * `scopes`
          * `overridable`
          * `tosubclass`
          * `toinstance`
          * `translatable`
  
          The comparison takes into account any case insensitivities described
          for these attributes.