def METHOD_NAME(self):
    commands = [
        "variable if True else 1",
        "variable[1]",
        "variable[1:3]",
        "variable[1:3, 2]",
        "[True for _ in [1, 2, 3]]",
        "(True for _ in [1, 2, 3])",
        "{True for _ in [1, 2, 3]}",
        "{str(_): _ for _ in [1, 2, 3]}",
        "lambda x: x",
    ]
    for command in commands:
        validator = SampleCodeValidator(command)
        assert validator.errors