class_docstr: A MultiObjectiveWeightedFunction class used to hold multi-objective weighted functions.
code: def weights(self, weights: List[float]) -> None:
      if not isinstance(weights, list):
          raise e.TypeError("`weights` should be a list")
      if len(weights) != len(self.functions):
          raise e.SizeError(
              "`weights` should have the same size of `functions`"
          )
  
      self._weights = weights
  
file_path: opytimizer/opytimizer/functions/multi_objective/weighted.py
imports: from typing import List
  import numpy
  import opytimizer.utils.exception
  from opytimizer.functions.multi_objective.standard import MultiObjectiveFunction
  from opytimizer.utils import logging
label_desc: Use image node_id 4 for calling the MultiObjectiveWeightedFunction obj's underlying member method code with example usage: obj.weights(weights) without return types