def class_annotate():
    """
    Registers a class to be used by delay_type. See annotate()
    """
    global annotated_class_list

    def decorator(cls):
        global annotated_class_list
        annotated_class_list[cls.__name__] = cls
        return cls

    return decorator

    Registers a class to be used by delay_type. See annotate()
    
coremltools/converters/mil/mil/types/annotate.py