<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def check_cell_type(cell, cell_type):
    '''
    Checks the cell type to see if it represents the cell_type passed in.

    Args:
        cell_type: The type id for a cell match or None for empty match.
    '''
    if cell_type == None or cell_type == type(None):
        return cell == None or (isinstance(cell, basestring) and not cell)
    else:
        return isinstance(cell, cell_type)