code: def _post_install_if_needed():
      """Runs _post_install if hasn't been run since install."""
      # Check for post-install file.
      post_install_file_path = path_in_cache("post_install_check_3")
      post_install_file_lock_path = post_install_file_path + ".lock"
      post_install_file_lock = filelock.FileLock(
          post_install_file_lock_path
      )
      post_install_file_lock.acquire()
      if os.path.exists(post_install_file_path):
          post_install_file_lock.release()
          return
      # Run post-install.
      _post_install()
      # Create file that indicates post-install completed.
      open(post_install_file_path, "w").close()
      post_install_file_lock.release()
  
file_path: TextAttack/textattack/shared/utils/install.py
imports: import logging.config
  import os
  import pathlib
  import shutil
  import sys
  import tempfile
  import zipfile
  import filelock
  import requests
  import tqdm
label_desc: Use image node_id 9 for calling a global function with example usage: _post_install_if_needed() without return types