code: def is_pex():
      """Return if streamlit running in pex.
  
      Pex modifies sys.path so the pex file is the first path and that's
      how we determine we're running in the pex file.
      """
      if re.match(r".*pex$", sys.path[0]):
          return True
      return False
  
imports: import os
  import platform
  import re
  import sys
label_desc: Use image node_id 1 for calling a global function with example usage: is_pex() and returns: False, True