def _create_resource_fn(self, resource_uri: str) -> Callable:
        """
        Create a resource call function for a specified MCP resource name. The function internally wraps the read_resource call to the MCP Client.
        """

        async def async_resource_fn():
            return await self.client.read_resource(resource_uri)

        return async_resource_fn

        Create a resource call function for a specified MCP resource name. The function internally wraps the read_resource call to the MCP Client.
        
llama-index-integrations/tools/llama-index-tools-mcp/llama_index/tools/mcp/base.py