def METHOD_NAME(transistor_array, n_row, n_col):
    lst = []
    if len(transistor_array.m) < 2:
        for y in range(n_row):
            lst.extend([0]*n_col)
    else:
        m = (n_col * n_row) // 2
        if m % 2 == 0:  # even
            for y in range(n_row):
                if y % 2 == 0:
                    lst.extend([k for k in islice(cycle([1, 2]), n_col)])
                else:
                    lst.extend([k for k in islice(cycle([2, 1]), n_col)])
        else:  # odd
            lst = [1, 2] * m
    return lst