code: def isdir(path):
      """Replacement for os.path.isdir that works in frozen environments."""
      if not hasattr(sys, "frozen"):
          return os.path.isdir(path)
  
      (zipPath, archivePath) = splitZip(path)
      if archivePath is None:
          return os.path.isdir(path)
      with zipfile.ZipFile(zipPath, "r") as zipobj:
          contents = zipobj.namelist()
      archivePath = (
          archivePath.rstrip("/") + "/"
      )  ## make sure there's exactly one '/' at the end
      for c in contents:
          if c.startswith(archivePath):
              return True
      return False
  
imports: import os
  import sys
  import zipfile
label_desc: Use image node_id 2 for calling a global function with example usage: isdir(path) and returns: False, os, os, True