Caffe2 - Python API
A deep learning, cross platform ML framework
compatibility.py
1 from six import PY2, PY3
2 
3 if PY2:
4  import collections
5  container_abcs = collections
6 elif PY3:
7  import collections.abc
8  container_abcs = collections.abc