code: def delete_local_server(task_name):
      global server_process
      print("Terminating server")
      server_process.terminate()
      server_process.wait()
      print("Cleaning temp directory")
      local_server_directory_path = os.path.join(
          core_dir,
          "{}_{}".format(local_server_directory_name, task_name),
      )
      sh.rm(shlex.split("-rf " + local_server_directory_path))
  
file_path: ParlAI/parlai/chat_service/utils/server.py
imports: import getpass
  import glob
  import hashlib
  import netrc
  import os
  import platform
  import sh
  import shlex
  import shutil
  import subprocess
  import time
label_desc: Use image node_id 4 for calling a global function with example usage: delete_local_server(task_name) without return types