class_docstr: Saves model topology, losses & metrics
class_docstr_tok: ["Saves","model","topology",",","losses","&","metrics"]
code: def log_predictions(self):
      try:
          inp, preds, targs, out = self.learn.fetch_preds.preds
          b = tuplify(inp) + tuplify(targs)
          x, y, its, outs = self.valid_dl.show_results(
              b, out, show=False, max_n=self.n_preds
          )
          wandb.log(
              wandb_process(x, y, its, outs, preds),
              step=self._wandb_step,
          )
      except Exception as e:
          self.log_preds = False
          self.remove_cb(FetchPredsCallback)
          print(
              f"WandbCallback was not able to get prediction samples -> {e}"
          )
  
imports: from __future__ import annotations
  from ..basics import *
  from .progress import *
  from ..text.data import TensorText
  from ..tabular.all import TabularDataLoaders, Tabular
  from .hook import total_params
  from .tracker import SaveModelCallback
  import wandb
label_desc: Use image node_id 6 for calling the WandbCallback obj's underlying member method code with example usage: obj.log_predictions() without return types