def can_enable(feature: Feature) -> bool:
        """Check if 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 True

        return _FeatureSetup.load_setup(modname).are_optionals_installed()
Check if 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