code: def symlink_path(target, symlink):
      try:
          if os.path.islink(symlink):
              os.remove(symlink)
          if not os.path.exists(symlink):
              os.symlink(target, symlink)
              return True
      except OSError:
          # os.remove() or os.symlink() raced. Don't do anything.
          pass
      return False
  
imports: import csv
  import json
  import logging
  import os
  import time
label_desc: Use image node_id 2 for calling a global function with example usage: symlink_path(target, symlink) and returns: False, True