code: def warning_message(message, logger=None, ts=False):
      msg = "[@card WARNING] %s" % message
      if logger:
          logger(msg, timestamp=ts, bad=True)
  
imports: from metaflow.decorators import StepDecorator
  from metaflow.current import current
  from metaflow.util import to_unicode
  from .component_serializer import CardComponentCollector, get_card_class
  from .card_creator import CardCreator
  import re
  from .exception import CARD_ID_PATTERN, TYPE_CHECK_REGEX
label_desc: Use image node_id 1 for calling a global function with example usage: warning_message(message, logger, ts) without return types