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

def soldOutForRole(event, role):
    '''
    This tag allows one to determine whether any event is sold out for any
    particular role.
    '''
    if not isinstance(event, Event) or not isinstance(role, DanceRole):
        return None
    return event.soldOutForRole(role)