def func_returning_union(a: int) -> Union[int, str]:
        """
        A function that returns a Union of int and str.

        Args:
            a: An integer

        Returns:
            Union[int, str]: Either an integer or a string
        """
        if a > 0:
            return a
        return str(a)

        A function that returns a Union of int and str.

        Args:
            a: An integer

        Returns:
            Union[int, str]: Either an integer or a string
        
ai/core/tests/core/test_callable_utils.py