code: def fit(self, **kwargs):
          
          if self.fit_method is not None:
              fit_args = self._fit_params.copy()
              fit_args.update(kwargs)
              getattr(self.instance, self.fit_method)(**fit_args)
docs: Call the fit method of the primitive.
  
          The given keyword arguments will be passed directly to the `fit`
          method of the primitive instance specified in the JSON annotation.
  
          If any of the arguments expected by the produce method had been
          given during the MLBlock initialization, they will be passed as well.
  
          If the fit method was not specified in the JSON annotation, or if
          the primitive is a simple function, this will be a noop.
  
          Args:
              **kwargs: Any given keyword argument will be directly passed
                        to the primitive fit method.
  
          Raises:
              TypeError: A `TypeError` might be raised if any argument not
                         expected by the primitive fit method is given.