code: def get_path(executable):
      try:
          complete_path = subprocess.check_output(["which", executable])
          return complete_path.decode("utf-8").strip()
      except subprocess.CalledProcessError:
          return None
  
imports: import os
  import subprocess
label_desc: Use image node_id 1 for calling a global function with example usage: get_path(executable) and returns: complete_path, None