code: def path_exist_and_skip(path, overwrite):
      if os.path.exists(path) and not overwrite:
          print(
              "Found {}. Skip writing. Turn `--overwrite` to force update the file.".format(
                  path
              )
          )
          return True
      return False
  
file_path: gluon-nlp/scripts/datasets/language_modeling/prepare_lm.py
imports: import argparse
  import os
  import zipfile
  import tarfile
  import shutil
  from typing import List, Optional
  from collections import Counter
  from gluonnlp.base import get_data_home_dir
  from gluonnlp.utils.misc import download, load_checksum_stats
  from gluonnlp.data.vocab import Vocab
label_desc: Use image node_id 2 for calling a global function with example usage: path_exist_and_skip(path, overwrite) and returns: False, True