code: def stop_hdfs():
      env = dict()
      command = ["docker-compose", "-f", COMPOSE_FILE, "down"]
      print("Shutting down docker-compose ...")
      proc = subprocess.Popen(" ".join(command), env=env, shell=True)
      proc.wait()
  
      command = ["sudo", "cp", "/etc/hosts.old", "/etc/hosts"]
      print("Restoring /etc/hosts file ...")
      proc = subprocess.Popen(" ".join(command), env=env, shell=True)
      proc.wait()
  
imports: import os
  import subprocess
  from Configuration import Settings
label_desc: Use image node_id 2 for calling a global function with example usage: stop_hdfs() without return types