def METHOD_NAME(self, object):
    """ Yield the instance traits matching the filter given. Any error
    occurred upon obtaining the trait definitions (e.g. the given object
    is not an instance of HasTraits) will be propagated.
    Parameters
    ----------
    object: object
        Object provided by the ``iter_objects`` methods from another
        observers or directly by the user.
    Yields
    ------
    IObservable
    """
    for name, ctrait in object.traits().items():
        if self.filter(name, ctrait):
            yield object._trait(name, 2)