def __contains__(self, ref_or_name):
        with self._lock:
            if isinstance(ref_or_name, six.string_types):
                return self._registered_names in ref_or_name
            else:
                return ref_or_name in self._by_ref
dataset/ETHPy150Open benoitc/flower/flower/registry.py/Registry.__contains__/swapped operands of `in`