code: def get_java_version():
      rc, out, _ = run("java -version")
      if rc != 0:
          return "**Warning: java not installed..."
      return out
  
imports: import locale
  import os
  import re
  import subprocess
  import sys
label_desc: Use image node_id 7 for calling a global function with example usage: get_java_version() and returns: out, str