def helper_encoder_from_model(self, add_encoder_dict):
        """extracts encoders from parameters at model creation"""
        model = TFTModel(
            input_chunk_length=self.input_chunk_length,
            output_chunk_length=self.output_chunk_length,
            add_encoders=add_encoder_dict,
        )

        encoders = model.initialize_encoders()
        # see if encoding works
        _ = encoders.encode_train(
            self.target_multi, self.covariates_multi, self.covariates_multi
        )
        _ = encoders.encode_inference(
            3, self.target_multi, self.covariates_multi, self.covariates_multi
        )
        _ = encoders.encode_train_inference(
            3, self.target_multi, self.covariates_multi, self.covariates_multi
        )
        return encoders
extracts encoders from parameters at model creation
darts/tests/dataprocessing/encoders/test_encoders.py