code: def start_hdfs():
      os.environ["JAVA_HOME"] = os.getenv("CONDA_PREFIX")
      hadoop_dir = Settings.data["TestSettings"]["hadoopDirectory"]
      os.environ["HADOOP_HOME"] = hadoop_dir
  
      if os.getenv("LD_LIBRARY_PATH") is None:
          env_hadoop_path = os.getenv("HADOOP_HOME")
          os.environ["LD_LIBRARY_PATH"] = (
              env_hadoop_path + "/lib/native/"
          )
      else:
          os.environ["LD_LIBRARY_PATH"] = (
              os.getenv("LD_LIBRARY_PATH")
              + ":"
              + os.getenv("HADOOP_HOME")
              + "/lib/native/"
          )
  
      env_hadoop_path = os.getenv("HADOOP_HOME")
      os.environ["PATH"] = (
          os.getenv("PATH") + ":" + env_hadoop_path + "/bin"
      )
  
      import subprocess
  
      callGlob = subprocess.run(
          [
              os.getenv("HADOOP_HOME") + "/bin/hdfs",
              "classpath",
              "--glob",
          ],
          stdout=subprocess.PIPE,
      )
  
      os.environ["CLASSPATH"] = callGlob.stdout.decode("utf-8").rstrip()
      os.environ["ARROW_LIBHDFS_DIR"] = (
          os.getenv("PATH")
          + ":"
          + os.getenv("HADOOP_HOME")
          + "/lib/native/"
      )
  
      print("JAVA_HOME: " + os.getenv("CONDA_PREFIX"))
      print("HADOOP_HOME: " + os.getenv("HADOOP_HOME"))
      print("PATH: " + os.getenv("PATH"))
      print("LD_LIBRARY_PATH: " + os.getenv("LD_LIBRARY_PATH"))
      print("CLASSPATH: " + os.getenv("CLASSPATH"))
      print("ARROW_LIBHDFS_DIR: " + os.getenv("ARROW_LIBHDFS_DIR"))
  
      # getEnvVars = subprocess.run(["printenv"], stdout=subprocess.PIPE)
  
      print("Starting docker-compose ...")
  
      command = [
          "../KrbHDFS/start_hdfs.sh",
          Settings.data["TestSettings"]["hadoopDirectory"],
          Settings.data["TestSettings"]["dataDirectory"],
      ]
      environ = dict(os.environ)
      proc = subprocess.Popen(
          " ".join(command), env=environ, shell=True
      )
      proc.wait()
  
imports: import os
  import subprocess
  from Configuration import Settings
label_desc: Use image node_id 1 for calling a global function with example usage: start_hdfs() without return types