class_docstr: Resolver for HuggingFace's pipeline request and responses, providing necessary data transformations and formatting.
  
  This is based off (from wandb.sdk.integration_utils.auto_logging import RequestResponseResolver)
class_docstr_tok: ["Resolver","for","HuggingFace","'s","pipeline","request","and","responses",",","providing","necessary","data","transformations","and","formatting",".","This","is","based","off","(","from","wandb.sdk.integration_utils.auto_logging","import","RequestResponseResolver",")"]
docstr: Extracts model from the pipeline.
  
  :param pipe: the HuggingFace pipeline
  :returns: Model if available, None otherwise
docstr_tok: ["Extracts","model","from","the","pipeline",".",":","param","pipe",":","the","HuggingFace","pipeline",":","returns",":","Model","if","available",",","None","otherwise"]
code: def _get_model(self, pipe) -> Optional[Any]:
      """Extracts model from the pipeline.
  
      :param pipe: the HuggingFace pipeline
      :returns: Model if available, None otherwise
      """
      model = pipe.model
      try:
          return model.model
      except AttributeError:
          logger.info(
              "Model does not have a `.model` attribute. Assuming `pipe.model` is the correct model."
          )
          return model
  
file_path: wandb/wandb/integration/huggingface/resolver.py
imports: import logging
  import os
  from datetime import datetime
  from typing import Any, Dict, List, Optional, Sequence, Tuple, Union
  import pytz
  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 2 for calling the HuggingFacePipelineRequestResponseResolver obj's underlying member method code with example usage: obj._get_model(pipe) and returns: model, model