def METHOD_NAME(self):
    """Top level regular assignment with a starred target not allowed, raises a message."""
    src = """
    NAME, *nums = ["George", 3, 4]
    """
    mod = astroid.parse(src)
    with self.assertAddsMessages(
        pylint.testutils.MessageTest(
            msg_id="forbidden-top-level-code", node=mod.body[0], args=2
        ),
        ignore_position=True,
    ):
        self.checker.visit_module(mod)