def _experimental_feature(
        self,
        flag: Union[str, Feature],
        *,
        value: Optional[bool] = None,
        freeze: bool = False,
    ) -> bool:
        """Get and/or set the value of the given feature flag.

        Set it first if value is given. Freeze it if `freeze` is set.

        Raises:
            ValueError: If the flag is frozen to a different value.
        """

        # NOTE(piotrm): The printouts are important as we want to make sure the
        # user is aware that they are using a experimental feature.

        flag = Feature(flag)

        was_frozen = self._experimental_feature_flags.is_frozen(flag)

        if value:
            # If the feature has optional requirements, this checks that they
            # are installed and raises an ImportError if not.
            _FeatureSetup.assert_can_enable(flag)

        original_value = self._experimental_feature_flags.get(flag)
        val = self._experimental_feature_flags.set(
            flag, value=value, freeze=freeze
        )
        changed = val != original_value

        if value is not None and changed:
            if val:
                print(
                    f"{text_utils.UNICODE_CHECK} experimental {flag} enabled."
                )
            else:
                print(
                    f"{text_utils.UNICODE_STOP} experimental {flag} disabled."
                )

        if val and freeze and not was_frozen:
            print(
                f"{text_utils.UNICODE_LOCK} experimental {flag} is enabled and cannot be changed."
            )

        return val
Get and/or set the value of the given feature flag.

        Set it first if value is given. Freeze it if `freeze` is set.

        Raises:
            ValueError: If the flag is frozen to a different value.
        
src/core/trulens/core/experimental/__init__.py