We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
ModuleNotFoundError: No module named 'icevision.backbones'
Using an example snippet from the README:
Icevision is the latest version from GitHub master.

![image](https://user-images.githubusercontent.com/4758917/170154700-8077d278-2569-4774-af07-d8fd70a8f611.png)
![image](https://user-images.githubusercontent.com/4758917/170154662-62a15922-44c0-4838-93d9-865cccf1e076.png)

--- 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 #!/usr/bin/env python
2 # Copyright The PyTorch Lightning team.
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 #     http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 import glob
16 import os
17 from functools import partial
18 from importlib.util import module_from_spec, spec_from_file_location
19 from itertools import chain
20 
21 from setuptools import find_packages, setup
22 
23 # https://packaging.python.org/guides/single-sourcing-package-version/
24 # http://blog.ionelmc.ro/2014/05/25/python-packaging/
25 _PATH_ROOT = os.path.dirname(__file__)
26 _PATH_REQUIRE = os.path.join(_PATH_ROOT, "requirements")
27 
28 
29 def _load_py_module(fname, pkg="flash"):
30     spec = spec_from_file_location(
31         os.path.join(pkg, fname),
32         os.path.join(_PATH_ROOT, pkg, fname),
33     )
34     py = module_from_spec(spec)
35     spec.loader.exec_module(py)
36     return py
37 
38 
39 about = _load_py_module("__about__.py")
40 setup_tools = _load_py_module("setup_tools.py")
41 
42 long_description = setup_tools._load_readme_description(
43     _PATH_ROOT,
44     homepage=about.__homepage__,
45     ver=about.__version__,
46 )
47 
48 
49 def _expand_reqs(extras: dict, keys: list) -> list:
50     return list(chain(*[extras[ex] for ex in keys]))
51 
52 
53 base_req = setup_tools._load_requirements(path_dir=_PATH_ROOT, file_name="requirements.txt")
54 # find all extra requirements
55 _load_req = partial(setup_tools._load_requirements, path_dir=_PATH_REQUIRE)
56 found_req_files = sorted(os.path.basename(p) for p in glob.glob(os.path.join(_PATH_REQUIRE, "*.txt")))
57 # remove datatype prefix
58 found_req_names = [os.path.splitext(req)[0].replace("datatype_", "") for req in found_req_files]
59 # define basic and extra extras
60 extras_req = {
61     name: _load_req(file_name=fname) for name, fname in zip(found_req_names, found_req_files) if "_" not in name
62 }
63 extras_req.update(
64     {
65         name: extras_req[name.split("_")[0]] + _load_req(file_name=fname)
66         for name, fname in zip(found_req_names, found_req_files)
67         if "_" in name
68     }
69 )
70 # some extra combinations
71 extras_req["vision"] = _expand_reqs(extras_req, ["image", "video"])
72 extras_req["core"] = _expand_reqs(extras_req, ["image", "tabular", "text"])
73 extras_req["all"] = _expand_reqs(extras_req, ["vision", "tabular", "text", "audio"])
74 extras_req["dev"] = _expand_reqs(extras_req, ["all", "test", "docs"])
75 # filter the uniques
76 extras_req = {n: list(set(req)) for n, req in extras_req.items()}
77 
78 # https://packaging.python.org/discussions/install-requires-vs-requirements /
79 # keep the meta-data here for simplicity in reading this file... it's not obvious
80 # what happens and to non-engineers they won't know to look in init ...
81 # the goal of the project is simplicity for researchers, don't want to add too much
82 # engineer specific practices
83 setup(
84     name="lightning-flash",
85     version=about.__version__,
86     description=about.__docs__,
87     author=about.__author__,
88     author_email=about.__author_email__,
89     url=about.__homepage__,
90     download_url="https://github.com/PyTorchLightning/lightning-flash",
91     license=about.__license__,
92     packages=find_packages(exclude=["tests", "tests.*"]),
93     long_description=long_description,
94     long_description_content_type="text/markdown",
95     include_package_data=True,
96     extras_require=extras_req,
97     entry_points={
98         "console_scripts": ["flash=flash.__main__:main"],
99     },
100     zip_safe=False,
101     keywords=["deep learning", "pytorch", "AI"],
102     python_requires=">=3.6",
103     install_requires=base_req,
104     project_urls={
105         "Bug Tracker": "https://github.com/PyTorchLightning/lightning-flash/issues",
106         "Documentation": "https://lightning-flash.rtfd.io/en/latest/",
107         "Source Code": "https://github.com/PyTorchLightning/lightning-flash",
108     },
109     classifiers=[
110         "Environment :: Console",
111         "Natural Language :: English",
112         # How mature is this project? Common values are
113         #   3 - Alpha, 4 - Beta, 5 - Production/Stable
114         "Development Status :: 4 - Beta",
115         # Indicate who your project is intended for
116         "Intended Audience :: Developers",
117         "Topic :: Scientific/Engineering :: Artificial Intelligence",
118         "Topic :: Scientific/Engineering :: Image Recognition",
119         "Topic :: Scientific/Engineering :: Information Analysis",
120         # Pick your license as you wish
121         # 'License :: OSI Approved :: BSD License',
122         "Operating System :: OS Independent",
123         # Specify the Python versions you support here. In particular, ensure
124         # that you indicate whether you support Python 2, Python 3 or both.
125         "Programming Language :: Python :: 3",
126         "Programming Language :: Python :: 3.6",
127         "Programming Language :: Python :: 3.7",
128         "Programming Language :: Python :: 3.8",
129         "Programming Language :: Python :: 3.9",
130         "Programming Language :: Python :: 3.10",
131     ],
132 )
133
```
--- 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
@@ -99,7 +99,7 @@
     },
     zip_safe=False,
     keywords=["deep learning", "pytorch", "AI"],
-    python_requires=">=3.6",
+    python_requires=">=3.7",
     install_requires=base_req,
     project_urls={
         "Bug Tracker": "https://github.com/PyTorchLightning/lightning-flash/issues",
@@ -123,10 +123,8 @@
         # Specify the Python versions you support here. In particular, ensure
         # that you indicate whether you support Python 2, Python 3 or both.
         "Programming Language :: Python :: 3",
-        "Programming Language :: Python :: 3.6",
         "Programming Language :: Python :: 3.7",
         "Programming Language :: Python :: 3.8",
         "Programming Language :: Python :: 3.9",
-        "Programming Language :: Python :: 3.10",
     ],
 )

{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -99,7 +99,7 @@\n     },\n     zip_safe=False,\n     keywords=[\"deep learning\", \"pytorch\", \"AI\"],\n-    python_requires=\">=3.6\",\n+    python_requires=\">=3.7\",\n     install_requires=base_req,\n     project_urls={\n         \"Bug Tracker\": \"https://github.com/PyTorchLightning/lightning-flash/issues\",\n@@ -123,10 +123,8 @@\n         # Specify the Python versions you support here. In particular, ensure\n         # that you indicate whether you support Python 2, Python 3 or both.\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     ],\n )\n", "issue": "ModuleNotFoundError: No module named 'icevision.backbones'\nUsing an example snippet from the README:\r\nIcevision is the latest version from GitHub master.\r\n\r\n![image](https://user-images.githubusercontent.com/4758917/170154700-8077d278-2569-4774-af07-d8fd70a8f611.png)\r\n![image](https://user-images.githubusercontent.com/4758917/170154662-62a15922-44c0-4838-93d9-865cccf1e076.png)\n", "before_files": [{"content": "#!/usr/bin/env python\n# Copyright The PyTorch Lightning team.\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.\nimport glob\nimport os\nfrom functools import partial\nfrom importlib.util import module_from_spec, spec_from_file_location\nfrom itertools import chain\n\nfrom setuptools import find_packages, setup\n\n# https://packaging.python.org/guides/single-sourcing-package-version/\n# http://blog.ionelmc.ro/2014/05/25/python-packaging/\n_PATH_ROOT = os.path.dirname(__file__)\n_PATH_REQUIRE = os.path.join(_PATH_ROOT, \"requirements\")\n\n\ndef _load_py_module(fname, pkg=\"flash\"):\n    spec = spec_from_file_location(\n        os.path.join(pkg, fname),\n        os.path.join(_PATH_ROOT, pkg, fname),\n    )\n    py = module_from_spec(spec)\n    spec.loader.exec_module(py)\n    return py\n\n\nabout = _load_py_module(\"__about__.py\")\nsetup_tools = _load_py_module(\"setup_tools.py\")\n\nlong_description = setup_tools._load_readme_description(\n    _PATH_ROOT,\n    homepage=about.__homepage__,\n    ver=about.__version__,\n)\n\n\ndef _expand_reqs(extras: dict, keys: list) -> list:\n    return list(chain(*[extras[ex] for ex in keys]))\n\n\nbase_req = setup_tools._load_requirements(path_dir=_PATH_ROOT, file_name=\"requirements.txt\")\n# find all extra requirements\n_load_req = partial(setup_tools._load_requirements, path_dir=_PATH_REQUIRE)\nfound_req_files = sorted(os.path.basename(p) for p in glob.glob(os.path.join(_PATH_REQUIRE, \"*.txt\")))\n# remove datatype prefix\nfound_req_names = [os.path.splitext(req)[0].replace(\"datatype_\", \"\") for req in found_req_files]\n# define basic and extra extras\nextras_req = {\n    name: _load_req(file_name=fname) for name, fname in zip(found_req_names, found_req_files) if \"_\" not in name\n}\nextras_req.update(\n    {\n        name: extras_req[name.split(\"_\")[0]] + _load_req(file_name=fname)\n        for name, fname in zip(found_req_names, found_req_files)\n        if \"_\" in name\n    }\n)\n# some extra combinations\nextras_req[\"vision\"] = _expand_reqs(extras_req, [\"image\", \"video\"])\nextras_req[\"core\"] = _expand_reqs(extras_req, [\"image\", \"tabular\", \"text\"])\nextras_req[\"all\"] = _expand_reqs(extras_req, [\"vision\", \"tabular\", \"text\", \"audio\"])\nextras_req[\"dev\"] = _expand_reqs(extras_req, [\"all\", \"test\", \"docs\"])\n# filter the uniques\nextras_req = {n: list(set(req)) for n, req in extras_req.items()}\n\n# https://packaging.python.org/discussions/install-requires-vs-requirements /\n# keep the meta-data here for simplicity in reading this file... it's not obvious\n# what happens and to non-engineers they won't know to look in init ...\n# the goal of the project is simplicity for researchers, don't want to add too much\n# engineer specific practices\nsetup(\n    name=\"lightning-flash\",\n    version=about.__version__,\n    description=about.__docs__,\n    author=about.__author__,\n    author_email=about.__author_email__,\n    url=about.__homepage__,\n    download_url=\"https://github.com/PyTorchLightning/lightning-flash\",\n    license=about.__license__,\n    packages=find_packages(exclude=[\"tests\", \"tests.*\"]),\n    long_description=long_description,\n    long_description_content_type=\"text/markdown\",\n    include_package_data=True,\n    extras_require=extras_req,\n    entry_points={\n        \"console_scripts\": [\"flash=flash.__main__:main\"],\n    },\n    zip_safe=False,\n    keywords=[\"deep learning\", \"pytorch\", \"AI\"],\n    python_requires=\">=3.6\",\n    install_requires=base_req,\n    project_urls={\n        \"Bug Tracker\": \"https://github.com/PyTorchLightning/lightning-flash/issues\",\n        \"Documentation\": \"https://lightning-flash.rtfd.io/en/latest/\",\n        \"Source Code\": \"https://github.com/PyTorchLightning/lightning-flash\",\n    },\n    classifiers=[\n        \"Environment :: Console\",\n        \"Natural Language :: English\",\n        # How mature is this project? Common values are\n        #   3 - Alpha, 4 - Beta, 5 - Production/Stable\n        \"Development Status :: 4 - Beta\",\n        # Indicate who your project is intended for\n        \"Intended Audience :: Developers\",\n        \"Topic :: Scientific/Engineering :: Artificial Intelligence\",\n        \"Topic :: Scientific/Engineering :: Image Recognition\",\n        \"Topic :: Scientific/Engineering :: Information Analysis\",\n        # Pick your license as you wish\n        # 'License :: OSI Approved :: BSD License',\n        \"Operating System :: OS Independent\",\n        # Specify the Python versions you support here. In particular, ensure\n        # that you indicate whether you support Python 2, Python 3 or both.\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    ],\n)\n", "path": "setup.py"}], "after_files": [{"content": "#!/usr/bin/env python\n# Copyright The PyTorch Lightning team.\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.\nimport glob\nimport os\nfrom functools import partial\nfrom importlib.util import module_from_spec, spec_from_file_location\nfrom itertools import chain\n\nfrom setuptools import find_packages, setup\n\n# https://packaging.python.org/guides/single-sourcing-package-version/\n# http://blog.ionelmc.ro/2014/05/25/python-packaging/\n_PATH_ROOT = os.path.dirname(__file__)\n_PATH_REQUIRE = os.path.join(_PATH_ROOT, \"requirements\")\n\n\ndef _load_py_module(fname, pkg=\"flash\"):\n    spec = spec_from_file_location(\n        os.path.join(pkg, fname),\n        os.path.join(_PATH_ROOT, pkg, fname),\n    )\n    py = module_from_spec(spec)\n    spec.loader.exec_module(py)\n    return py\n\n\nabout = _load_py_module(\"__about__.py\")\nsetup_tools = _load_py_module(\"setup_tools.py\")\n\nlong_description = setup_tools._load_readme_description(\n    _PATH_ROOT,\n    homepage=about.__homepage__,\n    ver=about.__version__,\n)\n\n\ndef _expand_reqs(extras: dict, keys: list) -> list:\n    return list(chain(*[extras[ex] for ex in keys]))\n\n\nbase_req = setup_tools._load_requirements(path_dir=_PATH_ROOT, file_name=\"requirements.txt\")\n# find all extra requirements\n_load_req = partial(setup_tools._load_requirements, path_dir=_PATH_REQUIRE)\nfound_req_files = sorted(os.path.basename(p) for p in glob.glob(os.path.join(_PATH_REQUIRE, \"*.txt\")))\n# remove datatype prefix\nfound_req_names = [os.path.splitext(req)[0].replace(\"datatype_\", \"\") for req in found_req_files]\n# define basic and extra extras\nextras_req = {\n    name: _load_req(file_name=fname) for name, fname in zip(found_req_names, found_req_files) if \"_\" not in name\n}\nextras_req.update(\n    {\n        name: extras_req[name.split(\"_\")[0]] + _load_req(file_name=fname)\n        for name, fname in zip(found_req_names, found_req_files)\n        if \"_\" in name\n    }\n)\n# some extra combinations\nextras_req[\"vision\"] = _expand_reqs(extras_req, [\"image\", \"video\"])\nextras_req[\"core\"] = _expand_reqs(extras_req, [\"image\", \"tabular\", \"text\"])\nextras_req[\"all\"] = _expand_reqs(extras_req, [\"vision\", \"tabular\", \"text\", \"audio\"])\nextras_req[\"dev\"] = _expand_reqs(extras_req, [\"all\", \"test\", \"docs\"])\n# filter the uniques\nextras_req = {n: list(set(req)) for n, req in extras_req.items()}\n\n# https://packaging.python.org/discussions/install-requires-vs-requirements /\n# keep the meta-data here for simplicity in reading this file... it's not obvious\n# what happens and to non-engineers they won't know to look in init ...\n# the goal of the project is simplicity for researchers, don't want to add too much\n# engineer specific practices\nsetup(\n    name=\"lightning-flash\",\n    version=about.__version__,\n    description=about.__docs__,\n    author=about.__author__,\n    author_email=about.__author_email__,\n    url=about.__homepage__,\n    download_url=\"https://github.com/PyTorchLightning/lightning-flash\",\n    license=about.__license__,\n    packages=find_packages(exclude=[\"tests\", \"tests.*\"]),\n    long_description=long_description,\n    long_description_content_type=\"text/markdown\",\n    include_package_data=True,\n    extras_require=extras_req,\n    entry_points={\n        \"console_scripts\": [\"flash=flash.__main__:main\"],\n    },\n    zip_safe=False,\n    keywords=[\"deep learning\", \"pytorch\", \"AI\"],\n    python_requires=\">=3.7\",\n    install_requires=base_req,\n    project_urls={\n        \"Bug Tracker\": \"https://github.com/PyTorchLightning/lightning-flash/issues\",\n        \"Documentation\": \"https://lightning-flash.rtfd.io/en/latest/\",\n        \"Source Code\": \"https://github.com/PyTorchLightning/lightning-flash\",\n    },\n    classifiers=[\n        \"Environment :: Console\",\n        \"Natural Language :: English\",\n        # How mature is this project? Common values are\n        #   3 - Alpha, 4 - Beta, 5 - Production/Stable\n        \"Development Status :: 4 - Beta\",\n        # Indicate who your project is intended for\n        \"Intended Audience :: Developers\",\n        \"Topic :: Scientific/Engineering :: Artificial Intelligence\",\n        \"Topic :: Scientific/Engineering :: Image Recognition\",\n        \"Topic :: Scientific/Engineering :: Information Analysis\",\n        # Pick your license as you wish\n        # 'License :: OSI Approved :: BSD License',\n        \"Operating System :: OS Independent\",\n        # Specify the Python versions you support here. In particular, ensure\n        # that you indicate whether you support Python 2, Python 3 or both.\n        \"Programming Language :: Python :: 3\",\n        \"Programming Language :: Python :: 3.7\",\n        \"Programming Language :: Python :: 3.8\",\n        \"Programming Language :: Python :: 3.9\",\n    ],\n)\n", "path": "setup.py"}]}