def component_names(
        self,
        series: Optional[TimeSeries] = None,
        components: Optional[Sequence] = None,
    ) -> list[str]:
        """Generates names for the parameters of the Likelihood."""
        if (series is not None) == (components is not None):
            raise_log(
                ValueError("Only one of `series` or `components` must be specified."),
                logger=logger,
            )
        if series is not None:
            components = series.components
        return likelihood_component_names(
            components=components, parameter_names=self.parameter_names
        )
Generates names for the parameters of the Likelihood.
darts/utils/likelihood_models/base.py