code: def isstdin():
      """
      Returns true if the last line was read from sys.stdin,
      otherwise returns false.
      """
      if not _state:
          raise RuntimeError("no active input()")
      return _state.isstdin()
  
imports: import io
  import sys, os
  from types import GenericAlias
label_desc: Use image node_id 9 for calling a global function with example usage: isstdin() and returns: _state