code: def has_x() -> bool:
      """Determines whether X is running."""
      return True if os.environ.get("DISPLAY", "") else False
  
file_path: launchpad/launchpad/launch/run_locally/feature_testing.py
imports: import distutils
  import distutils.spawn
  import os
  from typing import Text
label_desc: Use image node_id 2 for calling a global function with example usage: has_x() and returns: unknown