Reference: https://github.com/GoogleCloudPlatform/google-cloud-python/pull/2633#issue-185749686