def assert_can_enable(feature: Feature) -> None:
        """Asserts that the given feature can be enabled.

        This is used to check if the optional imports are available before
        enabling the feature flags.
        """

        if (modname := _FEATURE_SETUPS.get(feature)) is None:
            return

        return _FeatureSetup.load_setup(modname).assert_optionals_installed()
Asserts that the given feature can be enabled.

        This is used to check if the optional imports are available before
        enabling the feature flags.
        
src/core/trulens/core/experimental/__init__.py