code: def create_file_symlink(file1, file2):
      """
      Simply create the symlinks for a given file1 to file2.
      Useful during model checkpointing to symlinks to the
      latest successful checkpoint.
      """
      try:
          if g_pathmgr.exists(file2):
              g_pathmgr.rm(file2)
          g_pathmgr.symlink(file1, file2)
      except Exception as e:
          logging.info(f"Could NOT create symlink. Error: {e}")
  
imports: import json
  import logging
  import os
  import pickle
  import re
  import shutil
  import time
  from urllib.parse import urlparse
  import numpy
  import pandas
  import yaml
  from iopath.common.download import download
  from iopath.common.file_io import file_lock, g_pathmgr
  from vissl.utils.slurm import get_slurm_dir
label_desc: Use image node_id 2 for calling a global function with example usage: create_file_symlink(file1, file2) without return types