code: def methods(self, methods):
          
          # We make sure that the dictionary is a NocaseDict object, and that the
          # property values are CIMMethod objects:
          # pylint: disable=attribute-defined-outside-init
          self._methods = NocaseDict()
          if methods:
              try:
                  # This is used for iterables:
                  iterator = methods.items()
              except AttributeError:
                  # This is used for dictionaries:
                  iterator = methods
              for item in iterator:
                  if isinstance(item, CIMMethod):
                      key = item.name
                      value = item
                  elif isinstance(item, tuple):
                      key, value = item
                  else:
                      raise TypeError(
                          _format("Input object for methods has invalid item in "
                                  "iterable: {0!A}", item))
                  self.methods[key] = _cim_method(key, value)
docs: Setter method; for a description see the getter method.