docstr: Whether the requests to Metaseq worker have failed.
  
  It checks this based on the existences of the failure reasons as they get
  accumulated in `_make_request` functionn calls.
docstr_tok: ["Whether","the","requests","to","Metaseq","worker","have","failed",".","It","checks","this","based","on","the","existences","of","the","failure","reasons","as","they","get","accumulated","in","`","_make_request","`","functionn","calls","."]
code: def is_request_failed_response(resp):
      """
      Whether the requests to Metaseq worker have failed.
  
      It checks this based on the existences of the failure reasons as they get
      accumulated in `_make_request` functionn calls.
      """
      return len(
          resp.get("failures", [])
      ) > 0 or APIUtils.METASEQ_FAIL_MESSAGE_TEXT in resp.get(
          "text", ""
      )
  
imports: import aiohttp
  import asyncio
  from enum import Enum
  import json
  import math
  from nltk.corpus import stopwords
  from nltk.tokenize import word_tokenize
  from nltk.stem import PorterStemmer
  import os
  import random
  import string
  import time
  from typing import List, Tuple, Optional, Dict, Any, Set, Union
  from parlai.agents.ir_baseline.ir_baseline import score_match, MaxPriorityQueue
  from parlai.core.dict import DictionaryAgent
  from parlai.core.message import Message
  from parlai.core.metrics import F1Metric
  from parlai.core.torch_generator_agent import PPLMetric
  import parlai.utils.logging
  import projects.bb3.constants
  import projects.bb3.prompts
  from projects.bb3.agents.module import Module
label_desc: Use image node_id 1 for calling the APIUtils obj's underlying member method code with example usage: obj.is_request_failed_response(resp) and returns: unknown