human
square matrix with a checkerboard pattern of 0's and 1's of any given size.
assistant
Here is a Python code to square matrix with a checkerboard pattern of 0's and 1's of any given size

import numpy as np

def checkerboard(size):
    """
    Return a square matrix with a checkerboard pattern of 0's and 1's of any given size.
    """
    if size % 2 == 0:
        return np.array([[1, 0], [0, 1]])
    else:
        return np.array([[1, 0], [0, 0]])

# Enter the size
size = 3

# Calling the function
print((checkerboard(size)))

#Example Output
# [[1 0]
#  [0 0]]

#Remember to inspect code for bugs.