code: def is_installed(filename, *, allowsuffix=True):
      if not allowsuffix and filename.endswith(".py"):
          return False
      filename = os.path.abspath(os.path.normalize(filename))
      found = shutil.which(os.path.basename(filename))
      if not found:
          return False
      if found != filename:
          return False
      return _is_standalone(filename)
  
imports: import argparse
  import contextlib
  import logging
  import os
  import os.path
  import shutil
  import sys
  from .None import fsutil, strutil, iterutil, logging
label_desc: Use image node_id 3 for calling a global function with example usage: is_installed(filename) and returns: _is_standalone, False, False, False