code: def retry_if_request_failed(result: Any) -> bool:
      if type(result) is not dict:
          hlog(f"Unexpected response: {result}")
  
      return type(result) is not dict
  
file_path: H2O/h2o_hf/helm/scripts/cache/fix_anthropic_cache.py
imports: import argparse
  import json
  import time
  from typing import Any, Callable, Dict, List
  from helm.common.cache import create_key_value_store, MongoCacheConfig
  from helm.common.general import parse_hocon
  from helm.common.hierarchical_logger import hlog, htrack
  from helm.proxy.clients.anthropic_client import AnthropicLegacyClient
  from helm.proxy.retry import get_retry_decorator
label_desc: Use image node_id 1 for calling a global function with example usage: retry_if_request_failed(result) and returns: unknown