code: def status(message, modal=False, info=None):
      """Decorator to output status info to stdout."""
  
      def decorated_fxn(fxn):
          def call_fxn(*args, **kwargs):
              sys.stdout.write(message + " ... ")
              sys.stdout.flush()
              result = fxn(*args, **kwargs)
              if not modal and not info:
                  print("done")
              elif info:
                  print(info(result))
              else:
                  print("yes" if result else "NO")
              return result
  
          return call_fxn
  
      return decorated_fxn
  
imports: import re
  import sys
  import shutil
  import os.path
  import subprocess
  import sysconfig
  import reindent
  import untabify
label_desc: Use image node_id 3 for calling a global function with example usage: status(message, modal, info) and returns: decorated_fxn, call_fxn, result