code: def warning_message(message, logger=None, ts=False):
      if logger:
          msg = "[@card WARNING] %s" % message
          logger(msg, timestamp=ts, bad=True)
  
imports: from .card_modules import MetaflowCardComponent
  from .card_modules.basic import ErrorComponent, SectionComponent
  from .card_modules.components import UserComponent, create_component_id, StubComponent
  from .exception import ComponentOverwriteNotSupportedException
  from metaflow.metaflow_config import RUNTIME_CARD_RENDER_INTERVAL
  import uuid
  import json
  import platform
  from collections import OrderedDict
  import time
label_desc: Use image node_id 3 for calling a global function with example usage: warning_message(message, logger, ts) without return types