def priority(s):
    """Return priority for a give object."""
    if (list, tuple, set, frozenset) in type(s):
        return 6
    if type(s) is dict:
        return 5
    if hasattr(s, 'validate'):
        return 4
    if type(s) is type:
        return 3
    if callable(s):
        return 2
    else:
        return 1
dataset/ETHPy150Open DataScienceToolbox/data-science-toolbox/manager/dst/schema.py/priority/swapped operands of `in`