# Path: ipuz/exceptions.py
# class IPUZException(Exception):
#     pass
# 
# Path: ipuz/structures/stylespec.py
# def validate_stylespec(style_spec):
#     if (style_spec is not None and
#             not isinstance(style_spec, (dict, str))):
#         raise IPUZException("StyleSpec is not a name, dictionary or None")
#     if isinstance(style_spec, dict):
#         for key, value in style_spec.items():
#             if key not in IPUZ_STYLESPEC_VALIDATORS:
#                 raise IPUZException(
#                     "StyleSpec contains invalid specifier: {}".format(key)
#                 )
#             if not IPUZ_STYLESPEC_VALIDATORS[key](value):
#                 raise IPUZException(
#                     "StyleSpec has an invalid {} value".format(key)
#                 )


from ipuz.exceptions import IPUZException
from .stylespec import validate_stylespec


def validate_labeledcell(field_data):
    def validate_cell(cell):
        if (cell is not None and
                type(cell) not in [int, dict] and

# Path: ipuz/exceptions.py
# class IPUZException(Exception):
#     pass
# 
# Path: ipuz/structures/stylespec.py
# def validate_stylespec(style_spec):
#     if (style_spec is not None and
#             not isinstance(style_spec, (dict, str))):
#         raise IPUZException("StyleSpec is not a name, dictionary or None")
#     if isinstance(style_spec, dict):
#         for key, value in style_spec.items():
#             if key not in IPUZ_STYLESPEC_VALIDATORS:
#                 raise IPUZException(
#                     "StyleSpec contains invalid specifier: {}".format(key)
#                 )
#             if not IPUZ_STYLESPEC_VALIDATORS[key](value):
#                 raise IPUZException(
#                     "StyleSpec has an invalid {} value".format(key)
#                 )


# Path: ipuz/structures/labeledcell.py
from ipuz.exceptions import IPUZException
from .stylespec import validate_stylespec



def validate_labeledcell(field_data):
    def validate_cell(cell):
        if (cell is not None and
                type(cell) not in [int, dict] and

                not isinstance(cell, str)):