@utils.check_messages('unnecessary-pass')
def visit_pass(self, node):
    if ((len(node.parent.child_sequence(node)) > 1) or (isinstance(node.parent, (astroid.ClassDef, astroid.FunctionDef)) and (node.parent.doc is not None))):
        self.add_message('unnecessary-pass', node=node)
@utils.check_messages('unnecessary-pass')
def visit_pass(self, node):
    if ((len(node.parent.child_sequence(node)) > 1) or (isinstance(node.parent, (astroid.ClassDef, astroid.FunctionDef)) and (node.parent.doc is not None))):
        self.add_message('unnecessary-pass', node=node)