def _extract_static_covs(
        series: TimeSeries, mask_num: np.ndarray, mask_cat: np.ndarray
    ) -> tuple[np.array, np.array]:
        """
        Extracts all static covariates from a `TimeSeries`, and then extracts the numerical
        and categorical components to transform from these static covariates.
        """
        vals = series.static_covariates_values(copy=False)
        return vals[:, mask_num], vals[:, mask_cat]

        Extracts all static covariates from a `TimeSeries`, and then extracts the numerical
        and categorical components to transform from these static covariates.
        
darts/dataprocessing/transformers/static_covariates_transformer.py