We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Missing ship numpy testing decorator
```
Traceback (most recent call last):
  File "/Users/mbussonnier/dev/cpython/test/bin/iptest", line 6, in <module>
    from IPython.testing.iptestcontroller import main
  File "/Users/mbussonnier/dev/cpython/test/lib/python3.8/site-packages/IPython/testing/iptestcontroller.py", line 23, in <module>
    from .iptest import (
  File "/Users/mbussonnier/dev/cpython/test/lib/python3.8/site-packages/IPython/testing/iptest.py", line 40, in <module>
    from IPython.external.decorators import KnownFailure, dec
ImportError: cannot import name 'dec' from 'IPython.external.decorators' (/Users/mbussonnier/dev/cpython/test/lib/python3.8/site-packages/IPython/external/decorators/__init__.py)
```

Seem like `dec` is not define ini out `_decorator.py` 


Appologies for shortness boarding a plane

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `IPython/external/decorators/__init__.py`
Content:
```
1 try:
2     from numpy.testing import *
3     from numpy.testing import dec
4     from numpy.testing.noseclasses import KnownFailure
5 except ImportError:
6     from ._decorators import *
7     try:
8         from ._numpy_testing_noseclasses import KnownFailure
9     except ImportError:
10         pass
11
```
--- 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/IPython/external/decorators/__init__.py b/IPython/external/decorators/__init__.py
--- a/IPython/external/decorators/__init__.py
+++ b/IPython/external/decorators/__init__.py
@@ -1,9 +1,7 @@
 try:
-    from numpy.testing import *
-    from numpy.testing import dec
-    from numpy.testing.noseclasses import KnownFailure
+    from numpy.testing.noseclasses import KnownFailure, knownfailureif
 except ImportError:
-    from ._decorators import *
+    from ._decorators import knownfailureif
     try:
         from ._numpy_testing_noseclasses import KnownFailure
     except ImportError:

{"golden_diff": "diff --git a/IPython/external/decorators/__init__.py b/IPython/external/decorators/__init__.py\n--- a/IPython/external/decorators/__init__.py\n+++ b/IPython/external/decorators/__init__.py\n@@ -1,9 +1,7 @@\n try:\n-    from numpy.testing import *\n-    from numpy.testing import dec\n-    from numpy.testing.noseclasses import KnownFailure\n+    from numpy.testing.noseclasses import KnownFailure, knownfailureif\n except ImportError:\n-    from ._decorators import *\n+    from ._decorators import knownfailureif\n     try:\n         from ._numpy_testing_noseclasses import KnownFailure\n     except ImportError:\n", "issue": "Missing ship numpy testing decorator\n```\r\nTraceback (most recent call last):\r\n  File \"/Users/mbussonnier/dev/cpython/test/bin/iptest\", line 6, in <module>\r\n    from IPython.testing.iptestcontroller import main\r\n  File \"/Users/mbussonnier/dev/cpython/test/lib/python3.8/site-packages/IPython/testing/iptestcontroller.py\", line 23, in <module>\r\n    from .iptest import (\r\n  File \"/Users/mbussonnier/dev/cpython/test/lib/python3.8/site-packages/IPython/testing/iptest.py\", line 40, in <module>\r\n    from IPython.external.decorators import KnownFailure, dec\r\nImportError: cannot import name 'dec' from 'IPython.external.decorators' (/Users/mbussonnier/dev/cpython/test/lib/python3.8/site-packages/IPython/external/decorators/__init__.py)\r\n```\r\n\r\nSeem like `dec` is not define ini out `_decorator.py` \r\n\r\n\r\nAppologies for shortness boarding a plane\n", "before_files": [{"content": "try:\n    from numpy.testing import *\n    from numpy.testing import dec\n    from numpy.testing.noseclasses import KnownFailure\nexcept ImportError:\n    from ._decorators import *\n    try:\n        from ._numpy_testing_noseclasses import KnownFailure\n    except ImportError:\n        pass\n", "path": "IPython/external/decorators/__init__.py"}], "after_files": [{"content": "try:\n    from numpy.testing.noseclasses import KnownFailure, knownfailureif\nexcept ImportError:\n    from ._decorators import knownfailureif\n    try:\n        from ._numpy_testing_noseclasses import KnownFailure\n    except ImportError:\n        pass\n", "path": "IPython/external/decorators/__init__.py"}]}