def sample_function(self):
    """Create a sample function that accepts credentials for testing.

    This simulates a real Google API tool function that needs
    authenticated credentials to perform its work.
    """

    def sample_func(param1: str, credentials: Credentials = None) -> dict:
      """Sample function that uses Google API credentials."""
      if credentials:
        return {"result": f"Success with {param1}", "authenticated": True}
      else:
        return {"result": f"Success with {param1}", "authenticated": False}

    return sample_func
Create a sample function that accepts credentials for testing.

    This simulates a real Google API tool function that needs
    authenticated credentials to perform its work.
    
tests/unittests/tools/bigquery/test_bigquery_tool.py