docs: def get_data_by_hex_uuid_or_404(model, hex_uuid, kind=''):
      """Get instance data by uuid and kind. Raise 404 Not Found if there is no data.
  
      This requires model has a `bin_uuid` column.
  
      :param model: a string, model name in rio.models
      :param hex_uuid: a hex uuid string in 24-bytes human-readable representation.
      :return: a dict.
      """
      uuid = UUID(hex_uuid)
      bin_uuid = uuid.get_bytes()
  
      instance = get_instance_by_bin_uuid(model, bin_uuid)
  
      if not instance:
          return abort(404)
  
      return ins2dict(instance, kind)