def __contains__(self, key):
        """ contains method with key paths support """
        if not isinstance(key, list):
            key = key.split('.') if isinstance(key, basestring) else [key]
        this, next = key.pop(0), key
        if this in self.iterkeys():
            if len(next) > 0:
                return next in self.get(this)
            else:
                return True
        else:
            return False
dataset/ETHPy150Open facebook/pyaib/pyaib/util/data.py/Object.__contains__/original