fix test for python 3.7
import atexit
import binascii
-import collections
import functools
import operator
import os
@@ -304,7 +303,7 @@ class RandomState(object):
cov = cupy.asarray(cov, dtype=dtype)
if size is None:
shape = ()
- elif isinstance(size, collections.Sequence):
+ elif isinstance(size, cupy.util.collections_abc.Sequence):
shape = tuple(size)
else:
shape = size,
