def ShouldSkipDocstring(node):
  """Returns whether docstring checks should run on this function node.

  Args:
    node: The node under examination.
  """
  # Even plain functions will have a parent, which is the
  # module they're in, and a frame, which is the context
  # of said module; They need not however, always have
  # ancestors.
  return (node.name in ('run_once', 'initialize', 'cleanup') and
          hasattr(node.parent.frame(), 'ancestors') and
          any(ancestor.name == 'base_test' for ancestor in
              node.parent.frame().ancestors()))