class_docstr: Generic world for Crowd tasks.
class_docstr_tok: ["Generic","world","for","Crowd","tasks","."]
docstr: Programmatically approve/reject this work. Doing this now (if possible) means
  that you don't need to do the work of reviewing later on.
  
  For example:
  .. code-block:: python
      mephisto_agent = self.agent.mephisto_agent
      if self.response == '0':
          mephisto_agent.reject_work(
              'You rated our model's response as a 0/10 but we '
              'know we're better than that'
          )
      else:
          if self.response == '10':
              mephisto_agent.pay_bonus(1, 'Thanks for a great rating!')
          mephisto_agent.approve_work()
docstr_tok: ["Programmatically","approve\/reject","this","work",".","Doing","this","now","(","if","possible",")","means","that","you","do","n't","need","to","do","the","work","of","reviewing","later","on",".","For","example",":","..","code-block",":",":","python","mephisto_agent","=","self.agent.mephisto_agent","if","self.response","==","'","0","'",":","mephisto_agent.reject_work","(","'You","rated","our","model","'s","response","as","a","0\/10","but","we","'","'know","we","'re","better","than","that'",")","else",":","if","self.response","==","'10","'",":","mephisto_agent.pay_bonus","(","1",",","'Thanks","for","a","great","rating","!","'",")","mephisto_agent.approve_work","(",")"]
code: def review_work(self):
      """
      Programmatically approve/reject this work. Doing this now (if possible) means
      that you don't need to do the work of reviewing later on.
  
      For example:
      .. code-block:: python
          mephisto_agent = self.agent.mephisto_agent
          if self.response == '0':
              mephisto_agent.reject_work(
                  'You rated our model's response as a 0/10 but we '
                  'know we\'re better than that'
              )
          else:
              if self.response == '10':
                  mephisto_agent.pay_bonus(1, 'Thanks for a great rating!')
              mephisto_agent.approve_work()
      """
      # mephisto_agent = self.agent.mephisto_agent
      # mephisto_agent.approve_work()
      # mephisto_agent.reject_work()
      # mephisto_agent.pay_bonus(1000) # Pay $1000 as bonus
      # mephisto_agent.block_worker() # Block this worker from future work
      pass
  
file_path: ParlAI/parlai/crowdsourcing/utils/worlds.py
imports: from parlai.core.worlds import World
label_desc: Use image node_id 5 for calling the CrowdTaskWorld obj's underlying member method code with example usage: obj.review_work() without return types