prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  AttributeError: module 'googleapiclient' has no attribute '__version__'
  When importing new version of google-api-python-client
  `from apiclient import discovery`
  i'm getting the error
  `AttributeError: module 'googleapiclient' has no attribute '__version__'`
  
  https://github.com/googleapis/google-api-python-client/blob/84d45619d753cb04d957651886231034194058b6/apiclient/__init__.py#L22
  
  i guess this happens since you have removed `__version__` var from `googleapiclient/__init__.py`
  
  https://github.com/googleapis/google-api-python-client/commit/f706cfd821ab7457e5db37abfc3619772657dd0e#diff-b926d296d4c856bcbf877809e4523562L15
  
  can you please fix? @busunkim96 @mik-laj @crwilcox 
  
  Traceback:
  ```    from apiclient import discovery
    File "/usr/local/lib/python3.7/site-packages/apiclient/__init__.py", line 22, in <module>
      __version__ = googleapiclient.__version__
  AttributeError: module 'googleapiclient' has no attribute '__version__'
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `apiclient/__init__.py`
  Content:
  ```
  1 """Retain apiclient as an alias for googleapiclient."""
  2 
  3 from six import iteritems
  4 
  5 import googleapiclient
  6 
  7 from googleapiclient import channel
  8 from googleapiclient import discovery
  9 from googleapiclient import errors
  10 from googleapiclient import http
  11 from googleapiclient import mimeparse
  12 from googleapiclient import model
  13 
  14 try:
  15     from googleapiclient import sample_tools
  16 except ImportError:
  17     # Silently ignore, because the vast majority of consumers won't use it and
  18     # it has deep dependence on oauth2client, an optional dependency.
  19     sample_tools = None
  20 from googleapiclient import schema
  21 
  22 __version__ = googleapiclient.__version__
  23 
  24 _SUBMODULES = {
  25     "channel": channel,
  26     "discovery": discovery,
  27     "errors": errors,
  28     "http": http,
  29     "mimeparse": mimeparse,
  30     "model": model,
  31     "sample_tools": sample_tools,
  32     "schema": schema,
  33 }
  34 
  35 import sys
  36 
  37 for module_name, module in iteritems(_SUBMODULES):
  38     sys.modules["apiclient.%s" % module_name] = module
  39
  ```
  --- 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()
  
  ```
  
golden_diff: diff --git a/apiclient/__init__.py b/apiclient/__init__.py
  --- a/apiclient/__init__.py
  +++ b/apiclient/__init__.py
  @@ -19,8 +19,6 @@
       sample_tools = None
   from googleapiclient import schema
   
  -__version__ = googleapiclient.__version__
  -
   _SUBMODULES = {
       "channel": channel,
       "discovery": discovery,
  
verification_info: {"golden_diff": "diff --git a/apiclient/__init__.py b/apiclient/__init__.py\n--- a/apiclient/__init__.py\n+++ b/apiclient/__init__.py\n@@ -19,8 +19,6 @@\n     sample_tools = None\n from googleapiclient import schema\n \n-__version__ = googleapiclient.__version__\n-\n _SUBMODULES = {\n     \"channel\": channel,\n     \"discovery\": discovery,\n", "issue": "AttributeError: module 'googleapiclient' has no attribute '__version__'\nWhen importing new version of google-api-python-client\r\n`from apiclient import discovery`\r\ni'm getting the error\r\n`AttributeError: module 'googleapiclient' has no attribute '__version__'`\r\n\r\nhttps://github.com/googleapis/google-api-python-client/blob/84d45619d753cb04d957651886231034194058b6/apiclient/__init__.py#L22\r\n\r\ni guess this happens since you have removed `__version__` var from `googleapiclient/__init__.py`\r\n\r\nhttps://github.com/googleapis/google-api-python-client/commit/f706cfd821ab7457e5db37abfc3619772657dd0e#diff-b926d296d4c856bcbf877809e4523562L15\r\n\r\ncan you please fix? @busunkim96 @mik-laj @crwilcox \r\n\r\nTraceback:\r\n```    from apiclient import discovery\r\n  File \"/usr/local/lib/python3.7/site-packages/apiclient/__init__.py\", line 22, in <module>\r\n    __version__ = googleapiclient.__version__\r\nAttributeError: module 'googleapiclient' has no attribute '__version__'\n", "before_files": [{"content": "\"\"\"Retain apiclient as an alias for googleapiclient.\"\"\"\n\nfrom six import iteritems\n\nimport googleapiclient\n\nfrom googleapiclient import channel\nfrom googleapiclient import discovery\nfrom googleapiclient import errors\nfrom googleapiclient import http\nfrom googleapiclient import mimeparse\nfrom googleapiclient import model\n\ntry:\n    from googleapiclient import sample_tools\nexcept ImportError:\n    # Silently ignore, because the vast majority of consumers won't use it and\n    # it has deep dependence on oauth2client, an optional dependency.\n    sample_tools = None\nfrom googleapiclient import schema\n\n__version__ = googleapiclient.__version__\n\n_SUBMODULES = {\n    \"channel\": channel,\n    \"discovery\": discovery,\n    \"errors\": errors,\n    \"http\": http,\n    \"mimeparse\": mimeparse,\n    \"model\": model,\n    \"sample_tools\": sample_tools,\n    \"schema\": schema,\n}\n\nimport sys\n\nfor module_name, module in iteritems(_SUBMODULES):\n    sys.modules[\"apiclient.%s\" % module_name] = module\n", "path": "apiclient/__init__.py"}], "after_files": [{"content": "\"\"\"Retain apiclient as an alias for googleapiclient.\"\"\"\n\nfrom six import iteritems\n\nimport googleapiclient\n\nfrom googleapiclient import channel\nfrom googleapiclient import discovery\nfrom googleapiclient import errors\nfrom googleapiclient import http\nfrom googleapiclient import mimeparse\nfrom googleapiclient import model\n\ntry:\n    from googleapiclient import sample_tools\nexcept ImportError:\n    # Silently ignore, because the vast majority of consumers won't use it and\n    # it has deep dependence on oauth2client, an optional dependency.\n    sample_tools = None\nfrom googleapiclient import schema\n\n_SUBMODULES = {\n    \"channel\": channel,\n    \"discovery\": discovery,\n    \"errors\": errors,\n    \"http\": http,\n    \"mimeparse\": mimeparse,\n    \"model\": model,\n    \"sample_tools\": sample_tools,\n    \"schema\": schema,\n}\n\nimport sys\n\nfor module_name, module in iteritems(_SUBMODULES):\n    sys.modules[\"apiclient.%s\" % module_name] = module\n", "path": "apiclient/__init__.py"}]}