code: def _log_and_print_with_color(
      severity: int, message: str, *args
  ) -> None:
      logging.log(severity, message, *args)
      if severity >= logging.ERROR:
          color = "red"
      else:
          color = "blue"
      print(termcolor.colored(message % args, color))
  
imports: import atexit
  import collections
  from concurrent import futures
  import os
  import signal
  import subprocess
  import sys
  import threading
  import time
  import traceback
  from typing import Optional, Sequence, Text
  from absl import flags
  from absl import logging
  from absl.testing import absltest
  from launchpad import flags
  import psutil
  import termcolor
label_desc: Use image node_id 1 for calling a global function with example usage: _log_and_print_with_color(severity, message) without return types