code: def remove_if_exists(file_path):
      if os.path.exists(file_path):
          if os.path.islink(file_path) or os.path.isfile(file_path):
              os.remove(file_path)
          else:
              assert os.path.isdir(file_path)
              rmtree(file_path)
  
file_path: flink/flink-python/setup.py
imports: from __future__ import print_function
  import io
  import os
  import platform
  import re
  import sys
  from distutils.command.build_ext import build_ext
  from shutil import copytree, copy, rmtree
  from setuptools import setup, Extension
  from xml.etree import ElementTree
label_desc: Use image node_id 1 for calling a global function with example usage: remove_if_exists(file_path) without return types