code: def serialize_parameters(self):
          
  
          # Get parameter data
          class_params = self.class_params()
          instance_params = self.params()
  
          # Serialize each parameter
          serialized = {}
          for name in class_params.keys():
              param = class_params[name]
              value = instance_params[name]
              serialized[name] = param.serialize(value)
          return serialized
docs: Get the parameter data in its serialized form.
  
          Data is serialized by each parameter's :meth:`Parameter.serialize`
          implementation.
  
          :return: serialized parameter data in the form: ``{<name>: <serial data>, ...}``
          :rtype: :class:`dict`