code: def is_output_redirected():
      return _redirect_output
  
file_path: ray/python/ray/autoscaler/_private/subprocess_output_util.py
imports: import os
  import re
  import subprocess
  import sys
  import tempfile
  import time
  from ray.autoscaler._private.cli_logger import cf, cli_logger
label_desc: Use image node_id 1 for calling a global function with example usage: is_output_redirected() and returns: _redirect_output