def compare_elements(a, b):
    if a is None:
        a = []
    if b is None:
        b = []
    return set(a) == set(b)
Compare elements if a and b have same elements.
dataset/ETHPy150Open openstack/neutron/neutron/common/utils.py/compare_elements