def _get_globals(self) -> dict[str, Any]:
        """Get the globals of the function.

        Returns:
            The var names and values in the globals of the function.
        """
        if isinstance(self.func, CodeType):
            return {}
        return self.func.__globals__  # pyright: ignore[reportAttributeAccessIssue]
Get the globals of the function.

        Returns:
            The var names and values in the globals of the function.
        
reflex/vars/dep_tracking.py