# Path: ipuz/structures/stylespec.py
# def validate_stylespec_value(value):
#     try:
#         validate_stylespec(value)
#     except IPUZException:
#         return False
#     return True
# 
# Path: ipuz/validators.py
# def validate_dict(field_data, validators):
#     if not isinstance(field_data, dict) or not field_data:
#         return False
#     for key, value in field_data.items():
#         if key not in validators:
#             return False
#         if not validators[key](value):
#             return False
#     return True


from ipuz.structures import validate_stylespec_value
from ipuz.validators import validate_dict


def validate_sudokuvalue(field_data):
    def validate_value(value):
        if (value is not None and
                type(value) is not int and

# Path: ipuz/structures/stylespec.py
# def validate_stylespec_value(value):
#     try:
#         validate_stylespec(value)
#     except IPUZException:
#         return False
#     return True
# 
# Path: ipuz/validators.py
# def validate_dict(field_data, validators):
#     if not isinstance(field_data, dict) or not field_data:
#         return False
#     for key, value in field_data.items():
#         if key not in validators:
#             return False
#         if not validators[key](value):
#             return False
#     return True


# Path: ipuz/structures/sudokuvalue.py
from ipuz.structures import validate_stylespec_value
from ipuz.validators import validate_dict



def validate_sudokuvalue(field_data):
    def validate_value(value):
        if (value is not None and
                type(value) is not int and

                not isinstance(value, str)):