code: def register_annotype_converter(cls, types, is_array=False,
                                      is_mapping=False):
          # type: (Union[Sequence[type], type], bool, bool) -> Any
          
          if not isinstance(types, Sequence):
              types = [types]
  
          def decorator(subclass):
              for typ in types:
                  cls._annotype_lookup[(typ, is_array, is_mapping)] = subclass
              return subclass
  
          return decorator
docs: Register this class as a converter for Anno instances