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