# Path: pandas_gbq/exceptions.py
# class AccessDenied(ValueError):
#     """
#     Raised when invalid credentials are provided, or tokens have expired.
#     """
# 
# class GenericGBQException(ValueError):
#     """
#     Raised when an unrecognized Google API Error occurs.
#     """
# 
# Path: pandas_gbq/features.py
# FEATURES = Features()


import copy
import concurrent.futures
import logging
import re
import time
import typing
import warnings
import numpy as np
    import pandas
import pandas_gbq.schema
import pandas_gbq.timestamp
    import tqdm  # noqa
        import pkg_resources  # noqa
        import db_dtypes  # noqa
        import pydata_google_auth  # noqa
        import google.auth  # noqa
        import google.api_core.client_info
        import pandas
        import pandas
    import db_dtypes
    import db_dtypes
    import pandas.api.types
from datetime import datetime
from typing import Any, Dict, Optional, Sequence, Union
from pandas_gbq.exceptions import (
    AccessDenied,
    GenericGBQException,
)
from pandas_gbq.features import FEATURES
        from google_auth_oauthlib.flow import InstalledAppFlow  # noqa
        from google.cloud import bigquery  # noqa
        from google.api_core.exceptions import GoogleAPIError
        from google.api_core.exceptions import ClientError
        from pandas_gbq import auth
        from google.cloud import bigquery
        from google.cloud import bigquery
        from google.auth.exceptions import RefreshError
        from google.cloud import bigquery
        from pandas_gbq import load
    from google.api_core import exceptions as google_exceptions
    from google.cloud import bigquery
    from pandas_gbq import schema
        from google.cloud.bigquery import DatasetReference
        from google.cloud.bigquery import TableReference
        from google.api_core.exceptions import NotFound
        from google.cloud.bigquery import DatasetReference
        from google.cloud.bigquery import Table
        from google.cloud.bigquery import TableReference
        from google.api_core.exceptions import NotFound
        from google.cloud.bigquery import DatasetReference
        from google.api_core.exceptions import NotFound
        from google.cloud.bigquery import Dataset
# Copyright (c) 2017 pandas-gbq Authors All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.



# Only import at module-level at type checking time to avoid circular
# dependencies in the pandas package, which has an optional dependency on
# pandas-gbq.
if typing.TYPE_CHECKING:  # pragma: NO COVER


try:
except ImportError:
    tqdm = None

logger = logging.getLogger(__name__)


def _test_google_api_imports():
    try:

# Path: pandas_gbq/exceptions.py
# class AccessDenied(ValueError):
#     """
#     Raised when invalid credentials are provided, or tokens have expired.
#     """
# 
# class GenericGBQException(ValueError):
#     """
#     Raised when an unrecognized Google API Error occurs.
#     """
# 
# Path: pandas_gbq/features.py
# FEATURES = Features()


# Path: pandas_gbq/gbq.py
import copy
import concurrent.futures
import logging
import re
import time
import typing
import warnings
import numpy as np
    import pandas
import pandas_gbq.schema
import pandas_gbq.timestamp
    import tqdm  # noqa
        import pkg_resources  # noqa
        import db_dtypes  # noqa
        import pydata_google_auth  # noqa
        import google.auth  # noqa
        import google.api_core.client_info
        import pandas
        import pandas
    import db_dtypes
    import db_dtypes
    import pandas.api.types
from datetime import datetime
from typing import Any, Dict, Optional, Sequence, Union
from pandas_gbq.exceptions import (
    AccessDenied,
    GenericGBQException,
)
from pandas_gbq.features import FEATURES
        from google_auth_oauthlib.flow import InstalledAppFlow  # noqa
        from google.cloud import bigquery  # noqa
        from google.api_core.exceptions import GoogleAPIError
        from google.api_core.exceptions import ClientError
        from pandas_gbq import auth
        from google.cloud import bigquery
        from google.cloud import bigquery
        from google.auth.exceptions import RefreshError
        from google.cloud import bigquery
        from pandas_gbq import load
    from google.api_core import exceptions as google_exceptions
    from google.cloud import bigquery
    from pandas_gbq import schema
        from google.cloud.bigquery import DatasetReference
        from google.cloud.bigquery import TableReference
        from google.api_core.exceptions import NotFound
        from google.cloud.bigquery import DatasetReference
        from google.cloud.bigquery import Table
        from google.cloud.bigquery import TableReference
        from google.api_core.exceptions import NotFound
        from google.cloud.bigquery import DatasetReference
        from google.api_core.exceptions import NotFound
        from google.cloud.bigquery import Dataset

# Copyright (c) 2017 pandas-gbq Authors All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.



# Only import at module-level at type checking time to avoid circular
# dependencies in the pandas package, which has an optional dependency on
# pandas-gbq.
if typing.TYPE_CHECKING:  # pragma: NO COVER


try:
except ImportError:
    tqdm = None

logger = logging.getLogger(__name__)


def _test_google_api_imports():
    try:

    except ImportError as ex:  # pragma: NO COVER