Repository: Project-MONAI/MONAI

Issue:
torchaudio warning
**Describe the bug**
After installing the latest monai (1.0.0), a warning message is printed every time monai is imported. This warning was not present with the previous stable release of monai. I know this is not critical, but it is very annoying. 😀 Is it possible to add an option to disable this warning message?

```
C:\Users\ling\.conda\envs\HJDL\lib\site-packages\torchaudio\backend\utils.py:66: UserWarning: No audio backend is available.
  warnings.warn("No audio backend is available.")
```

**To Reproduce**
Steps to reproduce the behavior:
`import monai`

**Environment**
```
================================
Printing MONAI config...
================================
MONAI version: 1.0.0
Numpy version: 1.23.1
Pytorch version: 1.11.0
MONAI flags: HAS_EXT = False, USE_COMPILED = False, USE_META_DICT = False
MONAI rev id: 170093375ce29267e45681fcec09dfa856e1d7e7
MONAI __file__: C:\Users\ling\.conda\envs\HJDL\lib\site-packages\monai\__init__.py

Optional dependencies:
Pytorch Ignite version: NOT INSTALLED or UNKNOWN VERSION.
Nibabel version: 4.0.1
scikit-image version: 0.19.3
Pillow version: 9.2.0
Tensorboard version: 2.9.1
gdown version: NOT INSTALLED or UNKNOWN VERSION.
TorchVision version: 0.12.0
tqdm version: 4.64.0
lmdb version: NOT INSTALLED or UNKNOWN VERSION.
psutil version: 5.9.1
pandas version: NOT INSTALLED or UNKNOWN VERSION.
einops version: 0.4.1
transformers version: NOT INSTALLED or UNKNOWN VERSION.
mlflow version: NOT INSTALLED or UNKNOWN VERSION.
pynrrd version: NOT INSTALLED or UNKNOWN VERSION.

For details about installing the optional dependencies, please visit:
    https://docs.monai.io/en/latest/installation.html#installing-the-recommended-dependencies


================================
Printing system config...
================================
System: Windows
Win32 version: ('10', '10.0.19044', 'SP0', 'Multiprocessor Free')
Win32 edition: Professional
Platform: Windows-10-10.0.19044-SP0
Processor: Intel64 Family 6 Model 141 Stepping 1, GenuineIntel
Machine: AMD64
Python version: 3.10.4
Process name: python.exe
Command: ['C:\\Users\\ling\\.conda\\envs\\HJDL\\python.exe', '-c', 'import monai; monai.config.print_debug_info()']
Open files: [popenfile(path='C:\\Windows\\System32\\en-US\\KernelBase.dll.mui', fd=-1), popenfile(path='C:\\Windows\\System32\\en-US\\kernel32.dll.mui', fd=-1)]
Num physical CPUs: 6
Num logical CPUs: 12
Num usable CPUs: 12
CPU usage (%): [12.3, 0.0, 6.3, 1.8, 2.2, 2.2, 8.5, 6.3, 1.3, 0.9, 7.2, 67.3]
CPU freq. (MHz): 2918
Load avg. in last 1, 5, 15 mins (%): [0.0, 0.0, 0.0]
Disk usage (%): 58.0
Avg. sensor temp. (Celsius): UNKNOWN for given OS
Total physical memory (GB): 31.7
Available memory (GB): 21.8
Used memory (GB): 9.9

================================
Printing GPU config...
================================
Num GPUs: 1
Has CUDA: True
CUDA version: 11.3
cuDNN enabled: True
cuDNN version: 8200
Current device: 0
Library compiled for CUDA architectures: ['sm_37', 'sm_50', 'sm_60', 'sm_61', 'sm_70', 'sm_75', 'sm_80', 'sm_86', 'compute_37']
GPU 0 Name: NVIDIA T1200 Laptop GPU
GPU 0 Is integrated: False
GPU 0 Is multi GPU board: False
GPU 0 Multi processor count: 16
GPU 0 Total memory (GB): 4.0
GPU 0 CUDA capability (maj.min): 7.5
```


Discussion:

Resolving patch:
diff --git a/monai/transforms/signal/array.py b/monai/transforms/signal/array.py
--- a/monai/transforms/signal/array.py
+++ b/monai/transforms/signal/array.py
@@ -13,6 +13,7 @@
 https://github.com/Project-MONAI/MONAI/wiki/MONAI_Design
 """
 
+import warnings
 from typing import Any, Optional, Sequence
 
 import numpy as np
@@ -27,7 +28,9 @@
 
 shift, has_shift = optional_import("scipy.ndimage.interpolation", name="shift")
 iirnotch, has_iirnotch = optional_import("scipy.signal", name="iirnotch")
-filtfilt, has_filtfilt = optional_import("torchaudio.functional", name="filtfilt")
+with warnings.catch_warnings():
+    warnings.simplefilter("ignore", UserWarning)  # project-monai/monai#5204
+    filtfilt, has_filtfilt = optional_import("torchaudio.functional", name="filtfilt")
 central_frequency, has_central_frequency = optional_import("pywt", name="central_frequency")
 cwt, has_cwt = optional_import("pywt", name="cwt")
 
diff --git a/monai/utils/module.py b/monai/utils/module.py
--- a/monai/utils/module.py
+++ b/monai/utils/module.py
@@ -202,11 +202,11 @@ def load_submodules(basemod, load_all: bool = True, exclude_pattern: str = "(.*[
             except OptionalImportError:
                 pass  # could not import the optional deps., they are ignored
             except ImportError as e:
-                raise ImportError(
-                    "Multiple versions of MONAI may have been installed,\n"
-                    "please uninstall existing packages (both monai and monai-weekly) and install a version again.\n"
-                    "See also: https://docs.monai.io/en/stable/installation.html\n"
-                ) from e
+                msg = (
+                    "\nMultiple versions of MONAI may have been installed?\n"
+                    "Please see the installation guide: https://docs.monai.io/en/stable/installation.html\n"
+                )  # issue project-monai/monai#5193
+                raise type(e)(f"{e}\n{msg}").with_traceback(e.__traceback__) from e  # raise with modified message
 
     return submodules, err_mod
 


Test patch: