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: Creates a table from formatted data, model alias, timestamp, and elapsed time.
  
  :param formatted_data: list of dictionaries containing formatted data
  :param model_alias: alias of the model
  :param timestamp: timestamp of the data
  :param time_elapsed: time elapsed from the beginning
  :returns: list of lists, representing a table of data. [0]th element = columns. [1]st element = data
docstr_tok: ["Creates","a","table","from","formatted","data",",","model","alias",",","timestamp",",","and","elapsed","time",".",":","param","formatted_data",":","list","of","dictionaries","containing","formatted","data",":","param","model_alias",":","alias","of","the","model",":","param","timestamp",":","timestamp","of","the","data",":","param","time_elapsed",":","time","elapsed","from","the","beginning",":","returns",":","list","of","lists",",","representing","a","table","of","data",".","[","0","]","th","element","=","columns",".","[","1","]","st","element","=","data"]
code: def _create_table(
      self,
      formatted_data: List[Dict[str, Any]],
      model_alias: str,
      timestamp: float,
      time_elapsed: float,
  ) -> List[List[Any]]:
      """Creates a table from formatted data, model alias, timestamp, and elapsed time.
  
      :param formatted_data: list of dictionaries containing formatted data
      :param model_alias: alias of the model
      :param timestamp: timestamp of the data
      :param time_elapsed: time elapsed from the beginning
      :returns: list of lists, representing a table of data. [0]th element = columns. [1]st element = data
      """
      header = [
          "ID",
          "Model Alias",
          "Timestamp",
          "Elapsed Time",
          "Input",
          "Response",
          "Kwargs",
      ]
      table = [header]
      autolog_id = generate_id(length=16)
  
      for data in formatted_data:
          row = [
              autolog_id,
              model_alias,
              timestamp,
              time_elapsed,
              data["input"],
              data["response"],
              data["kwargs"],
          ]
          table.append(row)
  
      self.autolog_id = autolog_id
  
      return table
  
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 5 for calling the HuggingFacePipelineRequestResponseResolver obj's underlying member method code with example usage: obj._create_table(formatted_data, model_alias, timestamp, time_elapsed) and returns: table