code: def is_interactive():
      """Return True if all in/outs are tty"""
      return all(
          _is_stream_tty(s) for s in (sys.stdin, sys.stdout, sys.stderr)
      )
  
imports: import os
  import sys
  import tarfile
  import tempfile
  import timeit
  import os.path
  from glob import glob
  from datalad.utils import getpwd, get_tempfile_kwargs, rmtree
  from datalad.api import Dataset, create_test_dataset
label_desc: Use image node_id 2 for calling a global function with example usage: is_interactive() and returns: all