def METHOD_NAME(*classnames):
    """Return a function that requires an :class:`entities.entity.Entity``
    instace. The returned function returns ``True`` if the entity's
    classname equals one of the passed classnames.
    :rtype: lambda
    """
    return lambda entity: entity.classname in classnames