def get_function_as_callable(
        self, function_name: str, register_function: bool = True, namespace: dict[str, Any] = None
    ) -> Callable[..., Any]:
        """
        Returns the Python callable for an EXTERNAL Python function that is stored within Unity Catalog.
        This function can only parse and extract the full callable definition for Python functions and
        cannot be used on SQL or TABLE functions.

        Args:
            function_name: The name of the function to retrieve the Python callable for.
            register_function: Whether to register the function in the namespace. Defaults to True.
            namespace: The namespace to register the function in. Defaults to None (global)

        Returns:
            Callable[..., Any]: The Python callable for the function.
        """
        source = self.get_function_source(function_name)
        return load_function_from_string(
            func_def_str=source, register_function=register_function, namespace=namespace
        )

        Returns the Python callable for an EXTERNAL Python function that is stored within Unity Catalog.
        This function can only parse and extract the full callable definition for Python functions and
        cannot be used on SQL or TABLE functions.

        Args:
            function_name: The name of the function to retrieve the Python callable for.
            register_function: Whether to register the function in the namespace. Defaults to True.
            namespace: The namespace to register the function in. Defaults to None (global)

        Returns:
            Callable[..., Any]: The Python callable for the function.
        
ai/core/src/unitycatalog/ai/core/client.py