code: def log_if(level, msg, condition, *args):
      """Log 'msg % args' at level 'level' only if condition is fulfilled."""
      if condition:
          vlog(level, msg, *args)
  
imports: import logging
  import os
  import sys
  import _thread
  import time
  import traceback
  from logging import DEBUG
  from logging import ERROR
  from logging import FATAL
  from logging import INFO
  from logging import WARN
  import threading
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 17 for calling a global function with example usage: log_if(level, msg, condition) without return types