code: def find_last_experiment_version(path):
      last_version = -1
      for f in os.listdir(path):
          if "version_" in f:
              file_parts = f.split("_")
              version = int(file_parts[-1])
              last_version = max(last_version, version)
      return last_version
  
imports: import contextlib
  import json
  import os
  import shutil
  from datetime import datetime
  import numpy
  import pandas
  from imageio import imwrite
  from tensorboard.compat.proto.event_pb2 import Event
  from tensorboard.compat.proto.event_pb2 import SessionLog
  from torch.utils.tensorboard import SummaryWriter, FileWriter
label_desc: Use image node_id 2 for calling a global function with example usage: find_last_experiment_version(path) and returns: last_version