[Solved] Python Using or importing the ABCs from ‘collections‘ instead of from ‘collections.abc‘ is deprecate

python Import Warning: Using or importing the ABCs from ‘collections’ instead of from ‘collections.abc’ is deprecated since Python 3.3, and in 3.10 it will stop working
Codes below:

from collections import Iterator

print(isinstance(iter([]), Iterator))  # True

# Console output:
# D:\Code_data\pycharm project\first test\08-iterable.py:2: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
#   from collections import Iterator
# True

Although the results have come out, there has always been an annoying warning (using or importing the ABCs from ‘collections’ instead of from’ collections. ABC ‘is predicted since Python 3.3, and in 3.10 it will stop working), The solution is to change
from collections import iterator
to
from collections.abc import iterator

Read More: