def METHOD_NAME(subj: Any):
    match subj:
        # This should generate an error because a is used twice in the same pattern.
        case [a, *a]:
            pass
        case ([c, d] as f) | ([d, c] as f):
            pass
        # This should generate an error because h is used twice in the same pattern.
        case (g, 1 as h) as h:
            pass
        # This should generate an error because j is used twice in the same pattern.
        case Point(x=j, y=j):
            pass