@staticmethod<EOL><INDENT>def _is_default_hook(default_hook, hook):<DEDENT>
if not hasattr(default_hook, '<STR_LIT>'):<EOL><INDENT>raise TypeError('<STR_LIT>')<EOL><DEDENT>if not hasattr(hook, '<STR_LIT>'):<EOL><INDENT>raise TypeError('<STR_LIT>')<EOL><DEDENT>return default_hook.im_func is hook.im_func<EOL>
Checks whether a specific hook is in its default state.

        Args:
          cls: A ndb.model.Model class.
          default_hook: Callable specified by ndb internally (do not override).
          hook: The hook defined by a model class using _post_*_hook.

        Raises:
          TypeError if either the default hook or the tested hook are not callable.