langchain/tools/gmail/utils.py/import_googleapiclient_resource_builder
def import_googleapiclient_resource_builder() -> build_resource:
    try:
        from googleapiclient.discovery import build
    except ImportError:
        raise ValueError(
            "You need to install googleapiclient to use this toolkit. "
            "Try running pip install --upgrade google-api-python-client"
        )
    return build