def get_function(self, function_name: str, **kwargs: Any) -> "FunctionInfo":
        """
        Get a function by its name.

        Args:
            function_name: The name of the function to get.
            kwargs: additional key-value pairs to include when getting the function.
            Allowed keys for retrieving functions are:
            - include_browse: bool (default to None)
                Whether to include functions in the response for which the principal can only
                access selective metadata for.

        Note:
            The function name shouldn't be *, to get all functions in a catalog and schema,
            please use list_functions API instead.

        Returns:
            FunctionInfo: The function info.
        """
        from databricks.sdk.errors.platform import PermissionDenied

        full_func_name = FullFunctionName.validate_full_function_name(function_name)
        if "*" in full_func_name.function:
            raise ValueError(
                "function name cannot include *, to get all functions in a catalog and schema, "
                "please use list_functions API instead."
            )
        try:
            return self.client.functions.get(function_name)
        except PermissionDenied as e:
            raise PermissionError(f"Permission denied: {e}") from e

        Get a function by its name.

        Args:
            function_name: The name of the function to get.
            kwargs: additional key-value pairs to include when getting the function.
            Allowed keys for retrieving functions are:
            - include_browse: bool (default to None)
                Whether to include functions in the response for which the principal can only
                access selective metadata for.

        Note:
            The function name shouldn't be *, to get all functions in a catalog and schema,
            please use list_functions API instead.

        Returns:
            FunctionInfo: The function info.
        
ai/core/src/unitycatalog/ai/core/databricks.py