code: def watch_shell(command: str) -> None:
      process = subprocess.Popen(
          command,
          shell=True,
          stdout=subprocess.PIPE,
          stderr=subprocess.STDOUT,
      )  # nosec
      while True:
          output = process.stdout.readline().decode()
          if output == "" and process.poll() is not None:
              break
          if output:
              print(output.strip())
      rc = process.poll()
      return rc
  
imports: import json
  import os
  import subprocess
  from typing import Any
  from typing import Dict
  from typing import Optional
  from typing import Tuple
  import git
  import requests
label_desc: Use image node_id 2 for calling a global function with example usage: watch_shell(command) and returns: rc