def has_method(method_name):
    """Validator that checks if a given class has method with the given name"""

    def _validator(kls):
        return hasattr(kls, method_name) and callable(
            getattr(kls, method_name)
        )

    return _validator