class_docstr: Log OpenAI fine-tunes to [Weights & Biases](https://wandb.me/openai-docs).
class_docstr_tok: ["Log","OpenAI","fine-tunes","to","[","Weights","&","Biases","]","(","https",":","\/\/wandb.me\/openai-docs",")","."]
code: def _make_table(cls, file_content: str) -> Tuple[Table, int]:
      table = wandb.Table(
          columns=["role: system", "role: user", "role: assistant"]
      )
  
      df = pd.read_json(
          io.StringIO(file_content), orient="records", lines=True
      )
      for _idx, message in df.iterrows():
          messages = message.messages
          assert len(messages) == 3
          table.add_data(
              messages[0]["content"],
              messages[1]["content"],
              messages[2]["content"],
          )
  
      return table, len(df)
  
imports: import datetime
  import io
  import json
  import re
  import time
  from typing import Any, Dict, Optional, Tuple
  from pkg_resources import parse_version
  import wandb
  from wandb import util
  from wandb.data_types import Table
  from wandb.sdk.lib import telemetry
  from wandb.sdk.wandb_run import Run
  from openai import OpenAI
  from openai.types.fine_tuning import FineTuningJob
  from openai.types.fine_tuning.fine_tuning_job import Hyperparameters
label_desc: Use image node_id 11 for calling the WandbLogger obj's underlying member method code with example usage: obj._make_table(cls, file_content) and returns: table,  len