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 threading
  import time
  from logging import DEBUG, ERROR, FATAL, INFO, WARN
  import six
  from tensorlayer.decorators import deprecated
label_desc: Use image node_id 15 for calling a global function with example usage: log_if(level, msg, condition) without return types