class_docstr: Class to resolve the request/response from the Cohere API and convert it to a dictionary that can be logged.
class_docstr_tok: ["Class","to","resolve","the","request\/response","from","the","Cohere","API","and","convert","it","to","a","dictionary","that","can","be","logged","."]
code: def _resolve_classify_response(
      self, response: Response
  ) -> List[Dict[str, Any]]:
      # The labels key is a dict returning the scores for the classification probability for each label provided
      # We flatten this nested dict for ease of consumption in the wandb UI
      return [
          flatten_dict(_response.__dict__) for _response in response
      ]
  
file_path: wandb/wandb/integration/cohere/resolver.py
imports: import logging
  from datetime import datetime
  from typing import Any, Dict, List, Optional, Sequence, Tuple
  import wandb
  from wandb.sdk.integration_utils.auto_logging import Response
  from wandb.sdk.lib.runid import generate_id
label_desc: Use image node_id 4 for calling the CohereRequestResponseResolver obj's underlying member method code with example usage: obj._resolve_classify_response(response) and returns: unknown