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 _get_wandb_artifact(cls, artifact_path: str):
      cls._ensure_logged_in()
      try:
          if cls._wandb_api is None:
              cls._wandb_api = wandb.Api()
          return cls._wandb_api.artifact(artifact_path)
      except Exception:
          return None
  
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 6 for calling the WandbLogger obj's underlying member method code with example usage: obj._get_wandb_artifact(cls, artifact_path) and returns: cls, None