def get_hook(cls, unique_id):
    """
        Fetch a registered hook instance by its unique_id
        """
    if not cls.abstract:
        raise TypeError('get_hook method used on a non-abstract hook')
    return cls._registered_hooks.get(unique_id, None)
