code: def summary_writer(self):
      # Only on rank zero
      if not self._is_main:
          return None
  
      if self._summary_writer is None:
          # This would handle warning of missing tensorboard
          from torch.utils.tensorboard import SummaryWriter
  
          self._summary_writer = SummaryWriter(self.tensorboard_folder)
  
      return self._summary_writer
  
imports: import collections
  import collections.abc
  import functools
  import json
  import logging
  import os
  import sys
  import time
  from functools import wraps
  from typing import Any, Callable, Dict, Optional, Union
  import torch
  from mmf.common.registry import registry
  from mmf.utils.configuration import get_mmf_env
  from mmf.utils.distributed import get_rank, is_main, is_xla
  from mmf.utils.file_io import PathManager
  from mmf.utils.timer import Timer
  from termcolor import colored
label_desc: Use image node_id 2 for calling the TensorboardLogger obj's underlying member method code with example usage: obj.summary_writer() and returns: self, None