code: def set_property(self, key, value):
          
  
          if type(key) is str and type(value) is str:
              self.process_pair(key, value)
          else:
              raise TypeError('Both key and value should be strings!')
docs: Set the property for the given key