code: def make_symlink(src_path, lnk_path):
      
  
      # Check for Lustre 60-character symbolic link path bug
      if CHECK_LUSTRE_PATH_LEN:
          src_path = patch_lustre_path(src_path)
          lnk_path = patch_lustre_path(lnk_path)
  
      # os.symlink will happily make a symlink to a non-existent
      # file, but we don't want that behaviour
      # XXX: Do we want to be doing this?
      if not os.path.exists(src_path):
          return
  
      try:
          os.symlink(src_path, lnk_path)
      except EnvironmentError as exc:
          if exc.errno != errno.EEXIST:
              raise
          elif not os.path.islink(lnk_path):
              # Warn the user, but do not interrupt the job
              print("Warning: Cannot create symbolic link to {p}; a file named "
                    "{f} already exists.".format(p=src_path, f=lnk_path))
          else:
              # Overwrite any existing symbolic link
              if os.path.realpath(lnk_path) != src_path:
                  os.remove(lnk_path)
                  os.symlink(src_path, lnk_path)
docs: Safely create a symbolic link to an input field.