code: def setcbreak(fd, when=TCSAFLUSH):
      """Put terminal into cbreak mode."""
      mode = tcgetattr(fd)
      new = list(mode)
      cfmakecbreak(new)
      tcsetattr(fd, when, new)
      return mode
  
imports: from termios import *
label_desc: Use image node_id 4 for calling a global function with example usage: setcbreak(fd, when) and returns: mode