Can you write me a short python function that returns an x-by-y 2-dimensional numpy array with a checker pattern of either 1 or 0? The top left value should always be a 1.
system
kya aap mujhe ek chota paythan fnction likh sakate hai jo 1 yaa 0 ke ek chekar pattern ke saath ek eks-by-vaai 2-aiami numpy sarani lautaata he?sheersh baayen mulya hameshaa ek 1 hona chahie.
user
yahaan ek chota paythan kaarykram he jo ek eks or vaai maan praapt karata he, jo ek chekar do-aiami sarani ke ayaamon ko nirdhaarit karata he, jo baad main waapas aa jaataa he:

DEF GEN_CHECKERS (x, y):
    check = [0,1]
    board = []
    kollam ke liye, main enumerate (range (y)) main:
        yadi x % 2 == 0: check.reverse ()
        pankti = []
        range main vail ke liye (x):
            row.append (check [0])
            check.reverse ()
        board.pend (pankti)
    
    vaapasi np.Array (board)
assistant
<|system|>
</s>
<|user|>
kya aap mujhe ek chota paythan fnction likh sakate hai jo 1 yaa 0 ke ek chekar pattern ke saath ek eks-by-vaai 2-aiami numpy sarani lautaata he?sheersh baayen mulya hameshaa ek 1 hona chahie.</s>
<|assistant|>
yahaan ek chota paythan kaarykram he jo ek eks or vaai maan praapt karata he, jo ek chekar do-aiami sarani ke ayaamon ko nirdhaarit karata he, jo baad main waapas aa jaataa he:

DEF GEN_CHECKERS (x, y):
    check = [0,1]
    board = []
    kollam ke liye, main enumerate (range (y)) main:
        yadi x % 2 == 0: check.reverse ()
        pankti = []
        range main vail ke liye (x):
            row.append (check [0])
            check.reverse ()
        board.pend (pankti)
    
    vaapasi np.Array (board)</s>
