code: def main(epochs):
      Task.init(
          project_name="examples",
          task_name="fastai with tensorboard callback",
      )
  
      path = untar_data(URLs.MNIST_SAMPLE)
  
      data = ImageDataBunch.from_folder(
          path, ds_tfms=(rand_pad(2, 28), []), bs=64, num_workers=0
      )
      data.normalize(imagenet_stats)
  
      learn = cnn_learner(data, models.resnet18, metrics=accuracy)
      tboard_path = Path("data/tensorboard/project1")
      learn.callback_fns.append(
          partial(
              LearnerTensorboardWriter,
              base_dir=tboard_path,
              name="run0",
          )
      )
  
      accuracy(*learn.get_preds())
      learn.fit_one_cycle(epochs, 0.01)
  
label_desc: Use image node_id 1 for calling a global function with example usage: main(epochs) without return types