We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
The compat modules should use absolute imports
The [statsmodels.compat.collections](https://github.com/statsmodels/statsmodels/blob/a88830efc3a99cfbe0ebc9fbfd77820fe748fc59/statsmodels/compat/collections.py#L7) imports the namesake standard library module without requesting absolute imports.  While it seems to work in many cases, it causes a problem to packages that override `__import__`.  See enlnt/pyq#18.

Please consider adding

```python
from __future__ import absolute_import
```
to the compat modules.

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `statsmodels/compat/collections.py`
Content:
```
1 '''backported compatibility functions for Python's collections
2 
3 '''
4 
5 try:
6     #python >= 2.7
7     from collections import OrderedDict
8 except ImportError:
9     #http://code.activestate.com/recipes/576693/
10     #author: Raymond Hettinger
11     from .ordereddict import OrderedDict
12 
13 try:
14     #python >= 2.7
15     from collections import Counter
16 except ImportError:
17     #http://code.activestate.com/recipes/576611/
18     #author: Raymond Hettinger
19     from .counter import Counter
20
```
--- 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/statsmodels/compat/collections.py b/statsmodels/compat/collections.py
--- a/statsmodels/compat/collections.py
+++ b/statsmodels/compat/collections.py
@@ -1,6 +1,7 @@
 '''backported compatibility functions for Python's collections
 
 '''
+from __future__ import absolute_import
 
 try:
     #python >= 2.7

{"golden_diff": "diff --git a/statsmodels/compat/collections.py b/statsmodels/compat/collections.py\n--- a/statsmodels/compat/collections.py\n+++ b/statsmodels/compat/collections.py\n@@ -1,6 +1,7 @@\n '''backported compatibility functions for Python's collections\n \n '''\n+from __future__ import absolute_import\n \n try:\n     #python >= 2.7\n", "issue": "The compat modules should use absolute imports\nThe [statsmodels.compat.collections](https://github.com/statsmodels/statsmodels/blob/a88830efc3a99cfbe0ebc9fbfd77820fe748fc59/statsmodels/compat/collections.py#L7) imports the namesake standard library module without requesting absolute imports.  While it seems to work in many cases, it causes a problem to packages that override `__import__`.  See enlnt/pyq#18.\r\n\r\nPlease consider adding\r\n\r\n```python\r\nfrom __future__ import absolute_import\r\n```\r\nto the compat modules.\n", "before_files": [{"content": "'''backported compatibility functions for Python's collections\n\n'''\n\ntry:\n    #python >= 2.7\n    from collections import OrderedDict\nexcept ImportError:\n    #http://code.activestate.com/recipes/576693/\n    #author: Raymond Hettinger\n    from .ordereddict import OrderedDict\n\ntry:\n    #python >= 2.7\n    from collections import Counter\nexcept ImportError:\n    #http://code.activestate.com/recipes/576611/\n    #author: Raymond Hettinger\n    from .counter import Counter\n", "path": "statsmodels/compat/collections.py"}], "after_files": [{"content": "'''backported compatibility functions for Python's collections\n\n'''\nfrom __future__ import absolute_import\n\ntry:\n    #python >= 2.7\n    from collections import OrderedDict\nexcept ImportError:\n    #http://code.activestate.com/recipes/576693/\n    #author: Raymond Hettinger\n    from .ordereddict import OrderedDict\n\ntry:\n    #python >= 2.7\n    from collections import Counter\nexcept ImportError:\n    #http://code.activestate.com/recipes/576611/\n    #author: Raymond Hettinger\n    from .counter import Counter\n", "path": "statsmodels/compat/collections.py"}]}