code: def RegisterFieldTypeCodec(encoder, decoder):
      
      def Register(field_type):
          _FIELD_TYPE_CODECS[field_type] = _Codec(
              encoder=encoder, decoder=decoder)
          return field_type
      return Register
docs: Register a custom encoder/decoder for all fields of this type.