def can_check_isinstance(specified_type):
    """Checks that specified_type can be the second arg to isinstance without raising an exception."""
    try:
        isinstance(5, specified_type)
    except TypeError:
        return False
    return True