async def test_run_async_with_async_function(
      self, async_sample_function, credentials_config, mock_tool_context
  ):
    """Test that async functions are properly handled.

    The tool should correctly detect and execute async functions,
    which is important for tools that make async API calls.
    """
    tool = BigQueryTool(
        func=async_sample_function, credentials_config=credentials_config
    )

    mock_creds = Mock(spec=Credentials)
    with patch.object(
        tool._credentials_manager,
        "get_valid_credentials",
        return_value=mock_creds,
    ):

      result = await tool.run_async(
          args={"param1": "test_value"}, tool_context=mock_tool_context
      )

      assert result["result"] == "Async success with test_value"
      assert result["authenticated"] is True
Test that async functions are properly handled.

    The tool should correctly detect and execute async functions,
    which is important for tools that make async API calls.
    
tests/unittests/tools/bigquery/test_bigquery_tool.py