docstr: Factory method for the tracker
  
  Arguments:
      wandb_log - Log using weight and biases
      tensorboard_log - Log using tensorboard
  Returns:
      [BaseTracker] -- tracker
docstr_tok: ["Factory","method","for","the","tracker","Arguments",":","wandb_log","-","Log","using","weight","and","biases","tensorboard_log","-","Log","using","tensorboard","Returns",":","[","BaseTracker","]","--","tracker"]
code: def get_tracker(self, wandb_log: bool, tensorboard_log: bool):
      """
      Factory method for the tracker
  
      Arguments:
          wandb_log - Log using weight and biases
          tensorboard_log - Log using tensorboard
      Returns:
          [BaseTracker] -- tracker
      """
      if self.is_patch:
          return PatchRegistrationTracker(
              self, wandb_log=wandb_log, use_tensorboard=tensorboard_log
          )
      else:
          if self.is_end2end:
              raise NotImplementedError("implement end2end tracker")
          else:
              return FragmentRegistrationTracker(
                  num_points=self.num_points,
                  tau_1=self.tau_1,
                  tau_2=self.tau_2,
                  rot_thresh=self.rot_thresh,
                  trans_thresh=self.trans_thresh,
                  wandb_log=wandb_log,
                  use_tensorboard=tensorboard_log,
              )
  
imports: import numpy
  import os.path
  import random
  import torch
  import logging
  from torch_geometric.data import Data
  from torch_points_kernels.points_cpu import ball_query
  from functools import partial
  from torch_points3d.core.data_transform import MultiScaleTransform
  from torch_points3d.core.data_transform import PairTransform
  from torch_points3d.datasets.registration.pair import DensePairBatch
  from torch_points3d.utils.enums import ConvolutionFormat
  from torch_points3d.utils.config import ConvolutionFormatFactory
  from torch_points3d.datasets.registration.pair import PairMultiScaleBatch, PairBatch
  from torch_points3d.datasets.registration.pair import Pair, MultiScalePair
  from torch_points3d.datasets.registration.utils import tracked_matches
  from torch_points3d.datasets.registration.utils import compute_overlap_and_matches
  from torch_points3d.datasets.registration.utils import fps_sampling
  from torch_points3d.datasets.base_dataset import BaseDataset
  from torch_points3d.metrics.registration_tracker import PatchRegistrationTracker
  from torch_points3d.metrics.registration_tracker import FragmentRegistrationTracker
label_desc: Use image node_id 3 for calling the BaseSiameseDataset obj's underlying member method code with example usage: obj.get_tracker(wandb_log, tensorboard_log) and returns: PatchRegistrationTracker, FragmentRegistrationTracker