code: def setup_local_server(task_name):
      global server_process
      print("Local Server: Collecting files...")
  
      server_source_directory_path = os.path.join(
          core_dir, server_source_directory_name
      )
      local_server_directory_path = os.path.join(
          core_dir,
          "{}_{}".format(local_server_directory_name, task_name),
      )
  
      # Delete old server files
      sh.rm(shlex.split("-rf " + local_server_directory_path))
  
      # Copy over a clean copy into the server directory
      shutil.copytree(
          server_source_directory_path, local_server_directory_path
      )
  
      print("Local: Starting server...")
  
      os.chdir(local_server_directory_path)
  
      packages_installed = subprocess.call(["npm", "install"])
      if packages_installed != 0:
          raise Exception(
              "please make sure npm is installed, otherwise view "
              "the above error for more info."
          )
  
      server_process = subprocess.Popen(["node", "server.js"])
  
      time.sleep(1)
      print(
          "Server running locally with pid {}.".format(
              server_process.pid
          )
      )
      host = input(
          "Please enter the public server address, like https://hostname.com: "
      )
      port = input("Please enter the port given above, likely 3000: ")
      return "{}:{}".format(host, port)
  
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 3 for calling a global function with example usage: setup_local_server(task_name) and returns: str