We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Missing dependency python-dateutil in setup.py
I noticed that `python-dateutil` is missing from setup.py in `main`.  The line "python-dateutil >= 2.7.2, <3.0dev", was removed in https://github.com/googleapis/python-bigquery/commit/76d88fbb1316317a61fa1a63c101bc6f42f23af8. 

I'm seeing failures in samples testing for other projects:
https://source.cloud.google.com/results/invocations/8e737a80-a041-468e-a2de-184d5ec1662f/log

```
******************** TESTING PROJECTS ********************
------------------------------------------------------------
- testing samples/snippets
------------------------------------------------------------
nox > Running session py-3.10
nox > Creating virtual environment (virtualenv) using python3.10 in .nox/py-3-10
nox > python -m pip install -r requirements.txt
nox > python -m pip install -r requirements-test.txt
nox > python -m pip install -e /workspace
nox > pytest --junitxml=sponge_log.xml
ImportError while loading conftest '/workspace/samples/snippets/conftest.py'.
conftest.py:23: in <module>
    from google.cloud import bigquery
.nox/py-3-10/lib/python3.10/site-packages/google/cloud/bigquery/__init__.py:35: in <module>
    from google.cloud.bigquery.client import Client
.nox/py-3-10/lib/python3.10/site-packages/google/cloud/bigquery/client.py:64: in <module>
    from google.cloud.bigquery import _job_helpers
.nox/py-3-10/lib/python3.10/site-packages/google/cloud/bigquery/_job_helpers.py:24: in <module>
    from google.cloud.bigquery import job
.nox/py-3-10/lib/python3.10/site-packages/google/cloud/bigquery/job/__init__.py:17: in <module>
    from google.cloud.bigquery.job.base import _AsyncJob
.nox/py-3-10/lib/python3.10/site-packages/google/cloud/bigquery/job/base.py:27: in <module>
    from google.cloud.bigquery import _helpers
.nox/py-3-10/lib/python3.10/site-packages/google/cloud/bigquery/_helpers.py:24: in <module>
    from dateutil import relativedelta
E   ModuleNotFoundError: No module named 'dateutil'
```

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `setup.py`
Content:
```
1 # Copyright 2018 Google LLC
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #     http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14 
15 import io
16 import os
17 
18 import setuptools
19 
20 
21 # Package metadata.
22 
23 name = "google-cloud-bigquery"
24 description = "Google BigQuery API client library"
25 
26 # Should be one of:
27 # 'Development Status :: 3 - Alpha'
28 # 'Development Status :: 4 - Beta'
29 # 'Development Status :: 5 - Production/Stable'
30 release_status = "Development Status :: 5 - Production/Stable"
31 dependencies = [
32     "grpcio >= 1.38.1, < 2.0dev",  # https://github.com/googleapis/python-bigquery/issues/695
33     # NOTE: Maintainers, please do not require google-api-core>=2.x.x
34     # Until this issue is closed
35     # https://github.com/googleapis/google-cloud-python/issues/10566
36     "google-api-core[grpc] >= 1.31.5, <3.0.0dev,!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.0",
37     "google-cloud-bigquery-storage >= 2.0.0, <3.0.0dev",
38     "proto-plus >= 1.15.0",
39     # NOTE: Maintainers, please do not require google-cloud-core>=2.x.x
40     # Until this issue is closed
41     # https://github.com/googleapis/google-cloud-python/issues/10566
42     "google-cloud-core >= 1.4.1, <3.0.0dev",
43     "google-resumable-media >= 0.6.0, < 3.0dev",
44     "packaging >= 14.3",
45     "proto-plus >= 1.10.0",  # For the legacy proto-based types.
46     "protobuf >= 3.12.0",  # For the legacy proto-based types.
47     "pyarrow >= 3.0.0, < 8.0dev",
48     "requests >= 2.18.0, < 3.0.0dev",
49 ]
50 extras = {
51     # Keep the no-op bqstorage extra for backward compatibility.
52     # See: https://github.com/googleapis/python-bigquery/issues/757
53     "bqstorage": [],
54     "pandas": ["pandas>=1.0.0", "db-dtypes>=0.3.0,<2.0.0dev"],
55     "geopandas": ["geopandas>=0.9.0, <1.0dev", "Shapely>=1.6.0, <2.0dev"],
56     "ipython": ["ipython>=7.0.1,!=8.1.0"],
57     "tqdm": ["tqdm >= 4.7.4, <5.0.0dev"],
58     "opentelemetry": [
59         "opentelemetry-api >= 1.1.0",
60         "opentelemetry-sdk >= 1.1.0",
61         "opentelemetry-instrumentation >= 0.20b0",
62     ],
63 }
64 
65 all_extras = []
66 
67 for extra in extras:
68     all_extras.extend(extras[extra])
69 
70 extras["all"] = all_extras
71 
72 # Setup boilerplate below this line.
73 
74 package_root = os.path.abspath(os.path.dirname(__file__))
75 
76 readme_filename = os.path.join(package_root, "README.rst")
77 with io.open(readme_filename, encoding="utf-8") as readme_file:
78     readme = readme_file.read()
79 
80 version = {}
81 with open(os.path.join(package_root, "google/cloud/bigquery/version.py")) as fp:
82     exec(fp.read(), version)
83 version = version["__version__"]
84 
85 # Only include packages under the 'google' namespace. Do not include tests,
86 # benchmarks, etc.
87 packages = [
88     package
89     for package in setuptools.PEP420PackageFinder.find()
90     if package.startswith("google")
91 ]
92 
93 # Determine which namespaces are needed.
94 namespaces = ["google"]
95 if "google.cloud" in packages:
96     namespaces.append("google.cloud")
97 
98 
99 setuptools.setup(
100     name=name,
101     version=version,
102     description=description,
103     long_description=readme,
104     author="Google LLC",
105     author_email="googleapis-packages@google.com",
106     license="Apache 2.0",
107     url="https://github.com/googleapis/python-bigquery",
108     classifiers=[
109         release_status,
110         "Intended Audience :: Developers",
111         "License :: OSI Approved :: Apache Software License",
112         "Programming Language :: Python",
113         "Programming Language :: Python :: 3",
114         "Programming Language :: Python :: 3.6",
115         "Programming Language :: Python :: 3.7",
116         "Programming Language :: Python :: 3.8",
117         "Programming Language :: Python :: 3.9",
118         "Programming Language :: Python :: 3.10",
119         "Operating System :: OS Independent",
120         "Topic :: Internet",
121     ],
122     platforms="Posix; MacOS X; Windows",
123     packages=packages,
124     namespace_packages=namespaces,
125     install_requires=dependencies,
126     extras_require=extras,
127     python_requires=">=3.6, <3.11",
128     include_package_data=True,
129     zip_safe=False,
130 )
131
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -42,8 +42,8 @@
     "google-cloud-core >= 1.4.1, <3.0.0dev",
     "google-resumable-media >= 0.6.0, < 3.0dev",
     "packaging >= 14.3",
-    "proto-plus >= 1.10.0",  # For the legacy proto-based types.
     "protobuf >= 3.12.0",  # For the legacy proto-based types.
+    "python-dateutil >= 2.7.2, <3.0dev",
     "pyarrow >= 3.0.0, < 8.0dev",
     "requests >= 2.18.0, < 3.0.0dev",
 ]

{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -42,8 +42,8 @@\n     \"google-cloud-core >= 1.4.1, <3.0.0dev\",\n     \"google-resumable-media >= 0.6.0, < 3.0dev\",\n     \"packaging >= 14.3\",\n-    \"proto-plus >= 1.10.0\",  # For the legacy proto-based types.\n     \"protobuf >= 3.12.0\",  # For the legacy proto-based types.\n+    \"python-dateutil >= 2.7.2, <3.0dev\",\n     \"pyarrow >= 3.0.0, < 8.0dev\",\n     \"requests >= 2.18.0, < 3.0.0dev\",\n ]\n", "issue": "Missing dependency python-dateutil in setup.py\nI noticed that `python-dateutil` is missing from setup.py in `main`.  The line \"python-dateutil >= 2.7.2, <3.0dev\", was removed in https://github.com/googleapis/python-bigquery/commit/76d88fbb1316317a61fa1a63c101bc6f42f23af8. \r\n\r\nI'm seeing failures in samples testing for other projects:\r\nhttps://source.cloud.google.com/results/invocations/8e737a80-a041-468e-a2de-184d5ec1662f/log\r\n\r\n```\r\n******************** TESTING PROJECTS ********************\r\n------------------------------------------------------------\r\n- testing samples/snippets\r\n------------------------------------------------------------\r\nnox > Running session py-3.10\r\nnox > Creating virtual environment (virtualenv) using python3.10 in .nox/py-3-10\r\nnox > python -m pip install -r requirements.txt\r\nnox > python -m pip install -r requirements-test.txt\r\nnox > python -m pip install -e /workspace\r\nnox > pytest --junitxml=sponge_log.xml\r\nImportError while loading conftest '/workspace/samples/snippets/conftest.py'.\r\nconftest.py:23: in <module>\r\n    from google.cloud import bigquery\r\n.nox/py-3-10/lib/python3.10/site-packages/google/cloud/bigquery/__init__.py:35: in <module>\r\n    from google.cloud.bigquery.client import Client\r\n.nox/py-3-10/lib/python3.10/site-packages/google/cloud/bigquery/client.py:64: in <module>\r\n    from google.cloud.bigquery import _job_helpers\r\n.nox/py-3-10/lib/python3.10/site-packages/google/cloud/bigquery/_job_helpers.py:24: in <module>\r\n    from google.cloud.bigquery import job\r\n.nox/py-3-10/lib/python3.10/site-packages/google/cloud/bigquery/job/__init__.py:17: in <module>\r\n    from google.cloud.bigquery.job.base import _AsyncJob\r\n.nox/py-3-10/lib/python3.10/site-packages/google/cloud/bigquery/job/base.py:27: in <module>\r\n    from google.cloud.bigquery import _helpers\r\n.nox/py-3-10/lib/python3.10/site-packages/google/cloud/bigquery/_helpers.py:24: in <module>\r\n    from dateutil import relativedelta\r\nE   ModuleNotFoundError: No module named 'dateutil'\r\n```\n", "before_files": [{"content": "# Copyright 2018 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#     http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\nimport io\nimport os\n\nimport setuptools\n\n\n# Package metadata.\n\nname = \"google-cloud-bigquery\"\ndescription = \"Google BigQuery API client library\"\n\n# Should be one of:\n# 'Development Status :: 3 - Alpha'\n# 'Development Status :: 4 - Beta'\n# 'Development Status :: 5 - Production/Stable'\nrelease_status = \"Development Status :: 5 - Production/Stable\"\ndependencies = [\n    \"grpcio >= 1.38.1, < 2.0dev\",  # https://github.com/googleapis/python-bigquery/issues/695\n    # NOTE: Maintainers, please do not require google-api-core>=2.x.x\n    # Until this issue is closed\n    # https://github.com/googleapis/google-cloud-python/issues/10566\n    \"google-api-core[grpc] >= 1.31.5, <3.0.0dev,!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.0\",\n    \"google-cloud-bigquery-storage >= 2.0.0, <3.0.0dev\",\n    \"proto-plus >= 1.15.0\",\n    # NOTE: Maintainers, please do not require google-cloud-core>=2.x.x\n    # Until this issue is closed\n    # https://github.com/googleapis/google-cloud-python/issues/10566\n    \"google-cloud-core >= 1.4.1, <3.0.0dev\",\n    \"google-resumable-media >= 0.6.0, < 3.0dev\",\n    \"packaging >= 14.3\",\n    \"proto-plus >= 1.10.0\",  # For the legacy proto-based types.\n    \"protobuf >= 3.12.0\",  # For the legacy proto-based types.\n    \"pyarrow >= 3.0.0, < 8.0dev\",\n    \"requests >= 2.18.0, < 3.0.0dev\",\n]\nextras = {\n    # Keep the no-op bqstorage extra for backward compatibility.\n    # See: https://github.com/googleapis/python-bigquery/issues/757\n    \"bqstorage\": [],\n    \"pandas\": [\"pandas>=1.0.0\", \"db-dtypes>=0.3.0,<2.0.0dev\"],\n    \"geopandas\": [\"geopandas>=0.9.0, <1.0dev\", \"Shapely>=1.6.0, <2.0dev\"],\n    \"ipython\": [\"ipython>=7.0.1,!=8.1.0\"],\n    \"tqdm\": [\"tqdm >= 4.7.4, <5.0.0dev\"],\n    \"opentelemetry\": [\n        \"opentelemetry-api >= 1.1.0\",\n        \"opentelemetry-sdk >= 1.1.0\",\n        \"opentelemetry-instrumentation >= 0.20b0\",\n    ],\n}\n\nall_extras = []\n\nfor extra in extras:\n    all_extras.extend(extras[extra])\n\nextras[\"all\"] = all_extras\n\n# Setup boilerplate below this line.\n\npackage_root = os.path.abspath(os.path.dirname(__file__))\n\nreadme_filename = os.path.join(package_root, \"README.rst\")\nwith io.open(readme_filename, encoding=\"utf-8\") as readme_file:\n    readme = readme_file.read()\n\nversion = {}\nwith open(os.path.join(package_root, \"google/cloud/bigquery/version.py\")) as fp:\n    exec(fp.read(), version)\nversion = version[\"__version__\"]\n\n# Only include packages under the 'google' namespace. Do not include tests,\n# benchmarks, etc.\npackages = [\n    package\n    for package in setuptools.PEP420PackageFinder.find()\n    if package.startswith(\"google\")\n]\n\n# Determine which namespaces are needed.\nnamespaces = [\"google\"]\nif \"google.cloud\" in packages:\n    namespaces.append(\"google.cloud\")\n\n\nsetuptools.setup(\n    name=name,\n    version=version,\n    description=description,\n    long_description=readme,\n    author=\"Google LLC\",\n    author_email=\"googleapis-packages@google.com\",\n    license=\"Apache 2.0\",\n    url=\"https://github.com/googleapis/python-bigquery\",\n    classifiers=[\n        release_status,\n        \"Intended Audience :: Developers\",\n        \"License :: OSI Approved :: Apache Software License\",\n        \"Programming Language :: Python\",\n        \"Programming Language :: Python :: 3\",\n        \"Programming Language :: Python :: 3.6\",\n        \"Programming Language :: Python :: 3.7\",\n        \"Programming Language :: Python :: 3.8\",\n        \"Programming Language :: Python :: 3.9\",\n        \"Programming Language :: Python :: 3.10\",\n        \"Operating System :: OS Independent\",\n        \"Topic :: Internet\",\n    ],\n    platforms=\"Posix; MacOS X; Windows\",\n    packages=packages,\n    namespace_packages=namespaces,\n    install_requires=dependencies,\n    extras_require=extras,\n    python_requires=\">=3.6, <3.11\",\n    include_package_data=True,\n    zip_safe=False,\n)\n", "path": "setup.py"}], "after_files": [{"content": "# Copyright 2018 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#     http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\nimport io\nimport os\n\nimport setuptools\n\n\n# Package metadata.\n\nname = \"google-cloud-bigquery\"\ndescription = \"Google BigQuery API client library\"\n\n# Should be one of:\n# 'Development Status :: 3 - Alpha'\n# 'Development Status :: 4 - Beta'\n# 'Development Status :: 5 - Production/Stable'\nrelease_status = \"Development Status :: 5 - Production/Stable\"\ndependencies = [\n    \"grpcio >= 1.38.1, < 2.0dev\",  # https://github.com/googleapis/python-bigquery/issues/695\n    # NOTE: Maintainers, please do not require google-api-core>=2.x.x\n    # Until this issue is closed\n    # https://github.com/googleapis/google-cloud-python/issues/10566\n    \"google-api-core[grpc] >= 1.31.5, <3.0.0dev,!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.0\",\n    \"google-cloud-bigquery-storage >= 2.0.0, <3.0.0dev\",\n    \"proto-plus >= 1.15.0\",\n    # NOTE: Maintainers, please do not require google-cloud-core>=2.x.x\n    # Until this issue is closed\n    # https://github.com/googleapis/google-cloud-python/issues/10566\n    \"google-cloud-core >= 1.4.1, <3.0.0dev\",\n    \"google-resumable-media >= 0.6.0, < 3.0dev\",\n    \"packaging >= 14.3\",\n    \"protobuf >= 3.12.0\",  # For the legacy proto-based types.\n    \"python-dateutil >= 2.7.2, <3.0dev\",\n    \"pyarrow >= 3.0.0, < 8.0dev\",\n    \"requests >= 2.18.0, < 3.0.0dev\",\n]\nextras = {\n    # Keep the no-op bqstorage extra for backward compatibility.\n    # See: https://github.com/googleapis/python-bigquery/issues/757\n    \"bqstorage\": [],\n    \"pandas\": [\"pandas>=1.0.0\", \"db-dtypes>=0.3.0,<2.0.0dev\"],\n    \"geopandas\": [\"geopandas>=0.9.0, <1.0dev\", \"Shapely>=1.6.0, <2.0dev\"],\n    \"ipython\": [\"ipython>=7.0.1,!=8.1.0\"],\n    \"tqdm\": [\"tqdm >= 4.7.4, <5.0.0dev\"],\n    \"opentelemetry\": [\n        \"opentelemetry-api >= 1.1.0\",\n        \"opentelemetry-sdk >= 1.1.0\",\n        \"opentelemetry-instrumentation >= 0.20b0\",\n    ],\n}\n\nall_extras = []\n\nfor extra in extras:\n    all_extras.extend(extras[extra])\n\nextras[\"all\"] = all_extras\n\n# Setup boilerplate below this line.\n\npackage_root = os.path.abspath(os.path.dirname(__file__))\n\nreadme_filename = os.path.join(package_root, \"README.rst\")\nwith io.open(readme_filename, encoding=\"utf-8\") as readme_file:\n    readme = readme_file.read()\n\nversion = {}\nwith open(os.path.join(package_root, \"google/cloud/bigquery/version.py\")) as fp:\n    exec(fp.read(), version)\nversion = version[\"__version__\"]\n\n# Only include packages under the 'google' namespace. Do not include tests,\n# benchmarks, etc.\npackages = [\n    package\n    for package in setuptools.PEP420PackageFinder.find()\n    if package.startswith(\"google\")\n]\n\n# Determine which namespaces are needed.\nnamespaces = [\"google\"]\nif \"google.cloud\" in packages:\n    namespaces.append(\"google.cloud\")\n\n\nsetuptools.setup(\n    name=name,\n    version=version,\n    description=description,\n    long_description=readme,\n    author=\"Google LLC\",\n    author_email=\"googleapis-packages@google.com\",\n    license=\"Apache 2.0\",\n    url=\"https://github.com/googleapis/python-bigquery\",\n    classifiers=[\n        release_status,\n        \"Intended Audience :: Developers\",\n        \"License :: OSI Approved :: Apache Software License\",\n        \"Programming Language :: Python\",\n        \"Programming Language :: Python :: 3\",\n        \"Programming Language :: Python :: 3.6\",\n        \"Programming Language :: Python :: 3.7\",\n        \"Programming Language :: Python :: 3.8\",\n        \"Programming Language :: Python :: 3.9\",\n        \"Programming Language :: Python :: 3.10\",\n        \"Operating System :: OS Independent\",\n        \"Topic :: Internet\",\n    ],\n    platforms=\"Posix; MacOS X; Windows\",\n    packages=packages,\n    namespace_packages=namespaces,\n    install_requires=dependencies,\n    extras_require=extras,\n    python_requires=\">=3.6, <3.11\",\n    include_package_data=True,\n    zip_safe=False,\n)\n", "path": "setup.py"}]}