code: def __init__(
      self, stage: str, wandb_log: bool, use_tensorboard: bool
  ):
      self._wandb = wandb_log
      self._use_tensorboard = use_tensorboard
      self._tensorboard_dir = os.path.join(os.getcwd(), "tensorboard")
      self._n_iter = 0
      self._finalised = False
      self._conv_type = None
  
      if self._use_tensorboard:
          log.info(
              "Access tensorboard with the following command <tensorboard --logdir={}>".format(
                  self._tensorboard_dir
              )
          )
          self._writer = SummaryWriter(log_dir=self._tensorboard_dir)
  
imports: import os
  import torchnet
  import torch
  from typing import Dict, Any
  import wandb
  from torch.utils.tensorboard import SummaryWriter
  import logging
  from torch_points3d.models import model_interface
label_desc: Use image node_id 1 to create a new BaseTracker object  with example: obj = BaseTracker(stage, wandb_log, use_tensorboard)