<garvit244>36_1.py
def isValidSudoku( board):
    import collections
    dict_row, dict_col, dict_cell = collections.defaultdict(set), collections.defaultdict(set), collections.defaultdict(set)
    
    for row_index in range(1, 4):
        for col_index in range(1, 4):
            for row in range(3*(row_index-1), 3*row_index):
                for col in range(3*(col_index-1), 3*col_index):
                    cell_data = board[row][col]
                    if cell_data == '.':
                        continue
                    if cell_data in dict_row[row] or cell_data in dict_col[col] or cell_data in dict_cell[(row_index, col_index)]:
                        return False
                    
                    dict_row[row].add(cell_data)
                    dict_col[col].add(cell_data)
                    dict_cell[(row_index, col_index)].add(cell_data)
    
    return True
def sample_funcname ( var_0 ) :
    import var_1
    var_4 , var_5 , var_6 = var_1.defaultdict ( set ) , var_1.defaultdict ( set ) , var_1.defaultdict ( set )
    for var_10 in range ( 1 , 4 ) :
        for var_11 in range ( 1 , 4 ) :
            for var_13 in range ( 3 * ( var_10 - 1 ) , 3 * var_10 ) :
                for var_14 in range ( 3 * ( var_11 - 1 ) , 3 * var_11 ) :
                    var_15 = var_0 [ var_13 ] [ var_14 ]
                    if var_15 == '.' :
                        continue
                    if var_15 in var_4 [ var_13 ] or var_15 in var_5 [ var_14 ] or var_15 in var_6 [ ( var_10 , var_11 ) ] :
                        return False
                    var_4 [ var_13 ].add ( var_15 )
                    var_5 [ var_14 ].add ( var_15 )
                    var_6 [ ( var_10 , var_11 ) ].add ( var_15 )
    return True
