    def in_ci_env(self) -> bool:
        """Check if the current environment is CI.

        Returns
        -------
        bool
            Returns True if env CI_FLAG=CIRCLECI and TRICK_CI_ENV is not set (or 0).
        """
        return os.environ.get("CI_FLAG", None) == "CIRCLECI" and not self.trick_ci_env()
Check if the current environment is CI.

Returns
-------
bool
Returns True if env CI_FLAG=CIRCLECI and TRICK_CI_ENV is not set (or 0).
python/aitemplate/backend/target.py