@utils.check_messages('star-needs-assignment-target')
def visit_starred(self, node):
    'Check that a Starred expression is used in an assignment target.'
    if isinstance(node.parent, astroid.Call):
        return
    if isinstance(node.parent, (astroid.List, astroid.Tuple, astroid.Set, astroid.Dict)):
        return
    stmt = node.statement()
    if (not isinstance(stmt, astroid.Assign)):
        return
    if ((stmt.value is node) or stmt.value.parent_of(node)):
        self.add_message('star-needs-assignment-target', node=node)
Check that a Starred expression is used in an assignment target.
@utils.check_messages('star-needs-assignment-target')
def visit_starred(self, node):
    
    if isinstance(node.parent, astroid.Call):
        return
    if isinstance(node.parent, (astroid.List, astroid.Tuple, astroid.Set, astroid.Dict)):
        return
    stmt = node.statement()
    if (not isinstance(stmt, astroid.Assign)):
        return
    if ((stmt.value is node) or stmt.value.parent_of(node)):
        self.add_message('star-needs-assignment-target', node=node)