code: def ReadHuntOutputPluginsStates(self, hunt_id, cursor=None):
      
  
      columns = ", ".join(_HUNT_OUTPUT_PLUGINS_STATES_COLUMNS)
  
      query = ("SELECT {columns} FROM hunt_output_plugins_states "
               "WHERE hunt_id = %s".format(columns=columns))
      rows_returned = cursor.execute(query, [db_utils.HuntIDToInt(hunt_id)])
      if rows_returned > 0:
        states = []
        for row in cursor.fetchall():
          states.append(self._HuntOutputPluginStateFromRow(row))
        return states
  
      query = "SELECT hunt_id FROM hunts WHERE hunt_id = %s"
      rows_returned = cursor.execute(query, [db_utils.HuntIDToInt(hunt_id)])
      if rows_returned == 0:
        raise db.UnknownHuntError(hunt_id)
  
      return []
docs: Reads all hunt output plugins states of a given hunt.