We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Tests failing on A100 due to tolerance
**Describe the bug**
14 tests are failing on A100 due to issue with tolerance. The details of all tests and relative error are given below

**To Reproduce**
On a A100 GPU:
- Setup and install MONAI
- Run tests

** Details **
Failing tests and relative error on A100 are:

- `test_rand_3d_elastic_3 (tests.test_rand_elastic_3d.TestRand3DElastic)
Mismatched elements: 1 / 8 (12.5%)
Max absolute difference: 0.00179242
Max relative differenc: 0.00010684`
- `test_value_cuda_0 (tests.test_lltm.TestLLTM)
AssertionError: With rtol=0.0001 and atol=0.0001, found 2 element(s) (out of 8) whose difference(s) exceeded the margin of error (including 0 nan comparisons). The greatest difference was 0.00022590160369873047 (0.616874098777771 vs. 0.6171000003814697), which occurred at index (2, 1).`
- `test_shape_5 (tests.test_local_normalized_cross_correlation_loss.TestLocalNormalizedCrossCorrelationLoss)
Not equal to tolerance rtol=1e-05, atol=0
Mismatched elements: 1 / 1 (100%)
Max absolute difference: 0.
Max relative dfference: 0.
 ​x: array(-0.918834, dype=float32)
 ​y: array(-0.918672)`
- `test_shape_0 (tests.test_global_mutual_information_loss.TestGlobalMutualInformationLoss)
Not equal to tolerance rtol=0.0001, atol=0
Mismatched elements: 1 / 1 (100%)
Max absolute difference: 0.
Max relative dfference: 0.
 ​x: array(-1.098231, dype=float32)
 ​y: array(-1.098602)`
- `test_shape_1 (tests.test_global_mutual_information_loss.TestGlobalMutualInformationLoss)
AssertionError: 
Not equal to tolerance rtol=0.0001, atol=0
Mismatched elements: 1 / 1 (100%)
Max absolute difference: 0.
Max relative dfference: 0.
 ​x: array(-1.083798, dype=float32)
 ​y: array(-1.083999)`
- `test_shape_2 (tests.test_global_mutual_information_loss.TestGlobalMutualInformationLoss)
AssertionError: 
Not equal to tolerance rtol=0.0001, atol=0
Mismatched elements: 1 / 1 (100%)
Max absolute difference: 0.
Max relative dfference: 0.
 ​x: array(-1.083799, dype=float32)
 ​y: array(-1.083999)`
- `test_shape_3 (tests.test_global_mutual_information_loss.TestGlobalMutualInformationLoss)
AssertionError: 
Not equal to tolerance rtol=0.0001, atol=0
Mismatched elements: 1 / 1 (100%)
Max absolute difference: 0.
Max relative dfference: 0.
 ​x: array(-1.083798, dype=float32)
 ​y: array(-1.083999)`
- `test_affine_transform_2d (tests.test_affine_transform.TestAffineTransform)
AssertionError: 
Not equal to tolerance rtol=1e-07, atol=0.0001
Mismatched elements: 12 / 12 (100%)
Max absolute difference: 0.002
Max relative diffrence: 3071.
 ​x: array([[[[0.002197, 0.499532, 0.999491, 1.49934],
         ​[3.866943, 1.365621, 1.86558 , 2.36523],
         ​[7.7323  , 3.037472, 2.731669, 3.231812]]]], dype=float32)
 ​y: array([[[[0.000001, 0.5     , 1.      , 1.5    ],
         ​[3.866026, 1.366025, 1.866025, 2.36625],
         ​[7.732052, 3.035899, 2.732051, 3.232051]]]])`
- `test_affine_transform_3d (tests.test_affine_transform.TestAffineTransform)
AssertionError: 
Not equal to tolerance rtol=1e-07, atol=0.0001
Mismatched elements: 44 / 48 (91.7%)
Max absolute difference: 0.002
Max relative differene: 31533.831
 ​x: array([[[[[ 0.001892,  0.5017 ],
          ​[ 2.367615,  1.36743],
          ​[ 4.733337,  .402832],...
 ​y: array([[[[[ 0.      ,  0.5    ],
          ​[ 2.366025,  1.36605],
          ​[ 4.732051,  2.401924],...`
- `test_to_norm_affine_0 (tests.test_affine_transform.TestToNormAffine)
AssertionError: 
Not equal to tolerance rtol=1e-07, atol=0.0001
Mismatched elements: 2 / 9 (22.2%)
Max absolute difference: 0.
Max relative diffrence: 0.001
 ​x: array([[[ 1.333008,  0.      ,  0.33008],
        ​[ 0.      ,  0.399902, -0.60098],
        ​[ 0.      ,  0.      ,  1.      ]]], dype=float32)
 ​y: array([[[ 1.333333,  0.      ,  0.33333],
        ​[ 0.      ,  0.4     , -0.6    ],
        ​[ 0.      ,  0.      ,  1.      ]]])`
- `test_to_norm_affine_1 (tests.test_affine_transform.TestToNormAffine)
AssertionError: 
Not equal to tolerance rtol=1e-07, atol=0.0001
Mismatched elements: 2 / 9 (22.2%)
Max absolute difference: 0.
Max relative dfference: 0.
 ​x: array([[[ 1.25    ,  0.      ,  0.25   ],
        ​[ 0.      ,  0.499878, -0.50244],
        ​[ 0.      ,  0.      ,  1.      ]]], dype=float32)
 ​y: array([[[ 1.25,  0.  ,  .25],
        ​[ 0.  ,  0.5 , -.5 ],
        ​[ 0.  ,  0.  ,  1.  ]]])`
- `test_to_norm_affine_2 (tests.test_affine_transform.TestToNormAffine)
AssertionError: 
Not equal to tolerance rtol=1e-07, atol=0.0001

Mismatched elements: 2 / 16 (12.5%)
Max absolute difference: 0.
Max relative diffrence: 0.001
 ​x: array([[[ 2.      ,  0.      ,  0.      ,  1.     ],
        ​[ 0.      ,  1.333008,  0.      ,  0.33008],
        ​[ 0.      ,  0.      ,  0.399902, -0.60098],
        ​[ 0.      ,  0.      ,  0.      ,  1.      ]]], dype=float32)
 ​y: array([[[ 2.      ,  0.      ,  0.      ,  1.     ],
        ​[ 0.      ,  1.333333,  0.      ,  0.33333],
        ​[ 0.      ,  0.      ,  0.4     , -0.6    ],
        ​[ 0.      ,  0.      ,  0.      ,  1.      ]]])`
- `test_to_norm_affine_3 (tests.test_affine_transform.TestToNormAffine)
AssertionError: 
Not equal to tolerance rtol=1e-07, atol=0.0001

Mismatched elements: 2 / 16 (12.5%)
Max absolute difference: 0.
Max relative dfference: 0.
 ​x: array([[[ 1.5     ,  0.      ,  0.      ,  0.5    ],
        ​[ 0.      ,  1.25    ,  0.      ,  0.25   ],
        ​[ 0.      ,  0.      ,  0.499878, -0.50244],
        ​[ 0.      ,  0.      ,  0.      ,  1.      ]]], dype=float32)
 ​y: array([[[ 1.5 ,  0.  ,  0.  ,  .5 ],
        ​[ 0.  ,  1.25,  0.  ,  .25],
        ​[ 0.  ,  0.  ,  0.5 , -.5 ],
        ​[ 0.  ,  0.  ,  0.  ,  1.  ]]])`
- `test_rand_2d_elastic_4 (tests.test_rand_elastic_2d.TestRand2DElastic)
AssertionError: 
Not equal to tolerance rtol=0.0001, atol=0.0001

Mismatched elements: 2 / 12 (16.7%)
Max absolute difference: 0.001
Max relative dfference: 0.
 ​x: array([[[ 1.357813,  1.92286],
        ​[ 5.626798,  6.43219]],
...
 ​y: array([[[ 1.358411,  1.92131],
        ​[ 5.626623,  6.642721]],
...`


**Expected behavior**
All tests should pass

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Proposed Solution**
To increase the relative and absolute tolerance of the tests. 

build failed because of pip install
**Describe the bug**
errors from the quick tests `pip install`:
```
  Attempting uninstall: ruamel.yaml
    Found existing installation: ruamel-yaml 0.15.87
ERROR: Cannot uninstall 'ruamel-yaml'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
```

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `monai/__init__.py`
Content:
```
1 # Copyright 2020 - 2021 MONAI Consortium
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at
5 #     http://www.apache.org/licenses/LICENSE-2.0
6 # Unless required by applicable law or agreed to in writing, software
7 # distributed under the License is distributed on an "AS IS" BASIS,
8 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9 # See the License for the specific language governing permissions and
10 # limitations under the License.
11 
12 import os
13 import sys
14 
15 from ._version import get_versions
16 
17 PY_REQUIRED_MAJOR = 3
18 PY_REQUIRED_MINOR = 6
19 
20 version_dict = get_versions()
21 __version__: str = version_dict.get("version", "0+unknown")
22 __revision_id__: str = version_dict.get("full-revisionid")
23 del get_versions, version_dict
24 
25 __copyright__ = "(c) 2020 - 2021 MONAI Consortium"
26 
27 __basedir__ = os.path.dirname(__file__)
28 
29 if not (sys.version_info.major == PY_REQUIRED_MAJOR and sys.version_info.minor >= PY_REQUIRED_MINOR):
30     raise RuntimeError(
31         "MONAI requires Python {}.{} or higher. But the current Python is: {}".format(
32             PY_REQUIRED_MAJOR, PY_REQUIRED_MINOR, sys.version
33         ),
34     )
35 
36 from .utils.module import load_submodules
37 
38 # handlers_* have some external decorators the users may not have installed
39 # *.so files and folder "_C" may not exist when the cpp extensions are not compiled
40 excludes = "(^(monai.handlers))|((\\.so)$)|(^(monai._C))"
41 
42 # load directory modules only, skip loading individual files
43 load_submodules(sys.modules[__name__], False, exclude_pattern=excludes)
44 
45 # load all modules, this will trigger all export decorations
46 load_submodules(sys.modules[__name__], True, exclude_pattern=excludes)
47 
48 __all__ = [
49     "apps",
50     "config",
51     "data",
52     "engines",
53     "handlers",
54     "inferers",
55     "losses",
56     "metrics",
57     "networks",
58     "optimizers",
59     "transforms",
60     "utils",
61     "visualize",
62 ]
63
```
--- 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/monai/__init__.py b/monai/__init__.py
--- a/monai/__init__.py
+++ b/monai/__init__.py
@@ -26,7 +26,7 @@
 
 __basedir__ = os.path.dirname(__file__)
 
-if not (sys.version_info.major == PY_REQUIRED_MAJOR and sys.version_info.minor >= PY_REQUIRED_MINOR):
+if sys.version_info.major != PY_REQUIRED_MAJOR or sys.version_info.minor < PY_REQUIRED_MINOR:
     raise RuntimeError(
         "MONAI requires Python {}.{} or higher. But the current Python is: {}".format(
             PY_REQUIRED_MAJOR, PY_REQUIRED_MINOR, sys.version

{"golden_diff": "diff --git a/monai/__init__.py b/monai/__init__.py\n--- a/monai/__init__.py\n+++ b/monai/__init__.py\n@@ -26,7 +26,7 @@\n \n __basedir__ = os.path.dirname(__file__)\n \n-if not (sys.version_info.major == PY_REQUIRED_MAJOR and sys.version_info.minor >= PY_REQUIRED_MINOR):\n+if sys.version_info.major != PY_REQUIRED_MAJOR or sys.version_info.minor < PY_REQUIRED_MINOR:\n     raise RuntimeError(\n         \"MONAI requires Python {}.{} or higher. But the current Python is: {}\".format(\n             PY_REQUIRED_MAJOR, PY_REQUIRED_MINOR, sys.version\n", "issue": "Tests failing on A100 due to tolerance\n**Describe the bug**\r\n14 tests are failing on A100 due to issue with tolerance. The details of all tests and relative error are given below\r\n\r\n**To Reproduce**\r\nOn a A100 GPU:\r\n- Setup and install MONAI\r\n- Run tests\r\n\r\n** Details **\r\nFailing tests and relative error on A100 are:\r\n\r\n- `test_rand_3d_elastic_3 (tests.test_rand_elastic_3d.TestRand3DElastic)\r\nMismatched elements: 1 / 8 (12.5%)\r\nMax absolute difference: 0.00179242\r\nMax relative differenc: 0.00010684`\r\n- `test_value_cuda_0 (tests.test_lltm.TestLLTM)\r\nAssertionError: With rtol=0.0001 and atol=0.0001, found 2 element(s) (out of 8) whose difference(s) exceeded the margin of error (including 0 nan comparisons). The greatest difference was 0.00022590160369873047 (0.616874098777771 vs. 0.6171000003814697), which occurred at index (2, 1).`\r\n- `test_shape_5 (tests.test_local_normalized_cross_correlation_loss.TestLocalNormalizedCrossCorrelationLoss)\r\nNot equal to tolerance rtol=1e-05, atol=0\r\nMismatched elements: 1 / 1 (100%)\r\nMax absolute difference: 0.\r\nMax relative dfference: 0.\r\n \u200bx: array(-0.918834, dype=float32)\r\n \u200by: array(-0.918672)`\r\n- `test_shape_0 (tests.test_global_mutual_information_loss.TestGlobalMutualInformationLoss)\r\nNot equal to tolerance rtol=0.0001, atol=0\r\nMismatched elements: 1 / 1 (100%)\r\nMax absolute difference: 0.\r\nMax relative dfference: 0.\r\n \u200bx: array(-1.098231, dype=float32)\r\n \u200by: array(-1.098602)`\r\n- `test_shape_1 (tests.test_global_mutual_information_loss.TestGlobalMutualInformationLoss)\r\nAssertionError: \r\nNot equal to tolerance rtol=0.0001, atol=0\r\nMismatched elements: 1 / 1 (100%)\r\nMax absolute difference: 0.\r\nMax relative dfference: 0.\r\n \u200bx: array(-1.083798, dype=float32)\r\n \u200by: array(-1.083999)`\r\n- `test_shape_2 (tests.test_global_mutual_information_loss.TestGlobalMutualInformationLoss)\r\nAssertionError: \r\nNot equal to tolerance rtol=0.0001, atol=0\r\nMismatched elements: 1 / 1 (100%)\r\nMax absolute difference: 0.\r\nMax relative dfference: 0.\r\n \u200bx: array(-1.083799, dype=float32)\r\n \u200by: array(-1.083999)`\r\n- `test_shape_3 (tests.test_global_mutual_information_loss.TestGlobalMutualInformationLoss)\r\nAssertionError: \r\nNot equal to tolerance rtol=0.0001, atol=0\r\nMismatched elements: 1 / 1 (100%)\r\nMax absolute difference: 0.\r\nMax relative dfference: 0.\r\n \u200bx: array(-1.083798, dype=float32)\r\n \u200by: array(-1.083999)`\r\n- `test_affine_transform_2d (tests.test_affine_transform.TestAffineTransform)\r\nAssertionError: \r\nNot equal to tolerance rtol=1e-07, atol=0.0001\r\nMismatched elements: 12 / 12 (100%)\r\nMax absolute difference: 0.002\r\nMax relative diffrence: 3071.\r\n \u200bx: array([[[[0.002197, 0.499532, 0.999491, 1.49934],\r\n         \u200b[3.866943, 1.365621, 1.86558 , 2.36523],\r\n         \u200b[7.7323  , 3.037472, 2.731669, 3.231812]]]], dype=float32)\r\n \u200by: array([[[[0.000001, 0.5     , 1.      , 1.5    ],\r\n         \u200b[3.866026, 1.366025, 1.866025, 2.36625],\r\n         \u200b[7.732052, 3.035899, 2.732051, 3.232051]]]])`\r\n- `test_affine_transform_3d (tests.test_affine_transform.TestAffineTransform)\r\nAssertionError: \r\nNot equal to tolerance rtol=1e-07, atol=0.0001\r\nMismatched elements: 44 / 48 (91.7%)\r\nMax absolute difference: 0.002\r\nMax relative differene: 31533.831\r\n \u200bx: array([[[[[ 0.001892,  0.5017 ],\r\n          \u200b[ 2.367615,  1.36743],\r\n          \u200b[ 4.733337,  .402832],...\r\n \u200by: array([[[[[ 0.      ,  0.5    ],\r\n          \u200b[ 2.366025,  1.36605],\r\n          \u200b[ 4.732051,  2.401924],...`\r\n- `test_to_norm_affine_0 (tests.test_affine_transform.TestToNormAffine)\r\nAssertionError: \r\nNot equal to tolerance rtol=1e-07, atol=0.0001\r\nMismatched elements: 2 / 9 (22.2%)\r\nMax absolute difference: 0.\r\nMax relative diffrence: 0.001\r\n \u200bx: array([[[ 1.333008,  0.      ,  0.33008],\r\n        \u200b[ 0.      ,  0.399902, -0.60098],\r\n        \u200b[ 0.      ,  0.      ,  1.      ]]], dype=float32)\r\n \u200by: array([[[ 1.333333,  0.      ,  0.33333],\r\n        \u200b[ 0.      ,  0.4     , -0.6    ],\r\n        \u200b[ 0.      ,  0.      ,  1.      ]]])`\r\n- `test_to_norm_affine_1 (tests.test_affine_transform.TestToNormAffine)\r\nAssertionError: \r\nNot equal to tolerance rtol=1e-07, atol=0.0001\r\nMismatched elements: 2 / 9 (22.2%)\r\nMax absolute difference: 0.\r\nMax relative dfference: 0.\r\n \u200bx: array([[[ 1.25    ,  0.      ,  0.25   ],\r\n        \u200b[ 0.      ,  0.499878, -0.50244],\r\n        \u200b[ 0.      ,  0.      ,  1.      ]]], dype=float32)\r\n \u200by: array([[[ 1.25,  0.  ,  .25],\r\n        \u200b[ 0.  ,  0.5 , -.5 ],\r\n        \u200b[ 0.  ,  0.  ,  1.  ]]])`\r\n- `test_to_norm_affine_2 (tests.test_affine_transform.TestToNormAffine)\r\nAssertionError: \r\nNot equal to tolerance rtol=1e-07, atol=0.0001\r\n\r\nMismatched elements: 2 / 16 (12.5%)\r\nMax absolute difference: 0.\r\nMax relative diffrence: 0.001\r\n \u200bx: array([[[ 2.      ,  0.      ,  0.      ,  1.     ],\r\n        \u200b[ 0.      ,  1.333008,  0.      ,  0.33008],\r\n        \u200b[ 0.      ,  0.      ,  0.399902, -0.60098],\r\n        \u200b[ 0.      ,  0.      ,  0.      ,  1.      ]]], dype=float32)\r\n \u200by: array([[[ 2.      ,  0.      ,  0.      ,  1.     ],\r\n        \u200b[ 0.      ,  1.333333,  0.      ,  0.33333],\r\n        \u200b[ 0.      ,  0.      ,  0.4     , -0.6    ],\r\n        \u200b[ 0.      ,  0.      ,  0.      ,  1.      ]]])`\r\n- `test_to_norm_affine_3 (tests.test_affine_transform.TestToNormAffine)\r\nAssertionError: \r\nNot equal to tolerance rtol=1e-07, atol=0.0001\r\n\r\nMismatched elements: 2 / 16 (12.5%)\r\nMax absolute difference: 0.\r\nMax relative dfference: 0.\r\n \u200bx: array([[[ 1.5     ,  0.      ,  0.      ,  0.5    ],\r\n        \u200b[ 0.      ,  1.25    ,  0.      ,  0.25   ],\r\n        \u200b[ 0.      ,  0.      ,  0.499878, -0.50244],\r\n        \u200b[ 0.      ,  0.      ,  0.      ,  1.      ]]], dype=float32)\r\n \u200by: array([[[ 1.5 ,  0.  ,  0.  ,  .5 ],\r\n        \u200b[ 0.  ,  1.25,  0.  ,  .25],\r\n        \u200b[ 0.  ,  0.  ,  0.5 , -.5 ],\r\n        \u200b[ 0.  ,  0.  ,  0.  ,  1.  ]]])`\r\n- `test_rand_2d_elastic_4 (tests.test_rand_elastic_2d.TestRand2DElastic)\r\nAssertionError: \r\nNot equal to tolerance rtol=0.0001, atol=0.0001\r\n\r\nMismatched elements: 2 / 12 (16.7%)\r\nMax absolute difference: 0.001\r\nMax relative dfference: 0.\r\n \u200bx: array([[[ 1.357813,  1.92286],\r\n        \u200b[ 5.626798,  6.43219]],\r\n...\r\n \u200by: array([[[ 1.358411,  1.92131],\r\n        \u200b[ 5.626623,  6.642721]],\r\n...`\r\n\r\n\r\n**Expected behavior**\r\nAll tests should pass\r\n\r\n**Screenshots**\r\nIf applicable, add screenshots to help explain your problem.\r\n\r\n**Proposed Solution**\r\nTo increase the relative and absolute tolerance of the tests. \r\n\nbuild failed because of pip install\n**Describe the bug**\r\nerrors from the quick tests `pip install`:\r\n```\r\n  Attempting uninstall: ruamel.yaml\r\n    Found existing installation: ruamel-yaml 0.15.87\r\nERROR: Cannot uninstall 'ruamel-yaml'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.\r\n```\n", "before_files": [{"content": "# Copyright 2020 - 2021 MONAI Consortium\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#     http://www.apache.org/licenses/LICENSE-2.0\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 os\nimport sys\n\nfrom ._version import get_versions\n\nPY_REQUIRED_MAJOR = 3\nPY_REQUIRED_MINOR = 6\n\nversion_dict = get_versions()\n__version__: str = version_dict.get(\"version\", \"0+unknown\")\n__revision_id__: str = version_dict.get(\"full-revisionid\")\ndel get_versions, version_dict\n\n__copyright__ = \"(c) 2020 - 2021 MONAI Consortium\"\n\n__basedir__ = os.path.dirname(__file__)\n\nif not (sys.version_info.major == PY_REQUIRED_MAJOR and sys.version_info.minor >= PY_REQUIRED_MINOR):\n    raise RuntimeError(\n        \"MONAI requires Python {}.{} or higher. But the current Python is: {}\".format(\n            PY_REQUIRED_MAJOR, PY_REQUIRED_MINOR, sys.version\n        ),\n    )\n\nfrom .utils.module import load_submodules\n\n# handlers_* have some external decorators the users may not have installed\n# *.so files and folder \"_C\" may not exist when the cpp extensions are not compiled\nexcludes = \"(^(monai.handlers))|((\\\\.so)$)|(^(monai._C))\"\n\n# load directory modules only, skip loading individual files\nload_submodules(sys.modules[__name__], False, exclude_pattern=excludes)\n\n# load all modules, this will trigger all export decorations\nload_submodules(sys.modules[__name__], True, exclude_pattern=excludes)\n\n__all__ = [\n    \"apps\",\n    \"config\",\n    \"data\",\n    \"engines\",\n    \"handlers\",\n    \"inferers\",\n    \"losses\",\n    \"metrics\",\n    \"networks\",\n    \"optimizers\",\n    \"transforms\",\n    \"utils\",\n    \"visualize\",\n]\n", "path": "monai/__init__.py"}], "after_files": [{"content": "# Copyright 2020 - 2021 MONAI Consortium\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#     http://www.apache.org/licenses/LICENSE-2.0\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 os\nimport sys\n\nfrom ._version import get_versions\n\nPY_REQUIRED_MAJOR = 3\nPY_REQUIRED_MINOR = 6\n\nversion_dict = get_versions()\n__version__: str = version_dict.get(\"version\", \"0+unknown\")\n__revision_id__: str = version_dict.get(\"full-revisionid\")\ndel get_versions, version_dict\n\n__copyright__ = \"(c) 2020 - 2021 MONAI Consortium\"\n\n__basedir__ = os.path.dirname(__file__)\n\nif sys.version_info.major != PY_REQUIRED_MAJOR or sys.version_info.minor < PY_REQUIRED_MINOR:\n    raise RuntimeError(\n        \"MONAI requires Python {}.{} or higher. But the current Python is: {}\".format(\n            PY_REQUIRED_MAJOR, PY_REQUIRED_MINOR, sys.version\n        ),\n    )\n\nfrom .utils.module import load_submodules\n\n# handlers_* have some external decorators the users may not have installed\n# *.so files and folder \"_C\" may not exist when the cpp extensions are not compiled\nexcludes = \"(^(monai.handlers))|((\\\\.so)$)|(^(monai._C))\"\n\n# load directory modules only, skip loading individual files\nload_submodules(sys.modules[__name__], False, exclude_pattern=excludes)\n\n# load all modules, this will trigger all export decorations\nload_submodules(sys.modules[__name__], True, exclude_pattern=excludes)\n\n__all__ = [\n    \"apps\",\n    \"config\",\n    \"data\",\n    \"engines\",\n    \"handlers\",\n    \"inferers\",\n    \"losses\",\n    \"metrics\",\n    \"networks\",\n    \"optimizers\",\n    \"transforms\",\n    \"utils\",\n    \"visualize\",\n]\n", "path": "monai/__init__.py"}]}