code: def set_allow_interactive(val: bool):
      """Choose whether to pass on stdin to running commands.
  
      The default is to pipe stdin and close it immediately.
  
      Args:
          val: If true, stdin will be passed to commands.
      """
      global _allow_interactive
      _allow_interactive = val
  
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 4 for calling a global function with example usage: set_allow_interactive(val) without return types