def _infer_static_cov_dtypes(
        stat_covs: pd.DataFrame,
        cols_num: Optional[Sequence[str]],
        cols_cat: Optional[Sequence[str]],
    ):
        """
        Returns a list of names of numerical static covariates and a list
        of names of categorical/ordinal static covariates.
        """
        if cols_num is None:
            mask_num = stat_covs.columns.isin(
                stat_covs.select_dtypes(include=np.number).columns
            )
            cols_num = stat_covs.columns[mask_num]
        if cols_cat is None:
            mask_cat = stat_covs.columns.isin(
                stat_covs.select_dtypes(exclude=np.number).columns
            )
            cols_cat = stat_covs.columns[mask_cat]
        return cols_num, cols_cat

        Returns a list of names of numerical static covariates and a list
        of names of categorical/ordinal static covariates.
        
darts/dataprocessing/transformers/static_covariates_transformer.py