code: def time_to_datetime(x):
      """Convert a time into a datetime"""
      if isinstance(x, time):
          return datetime.combine(date(1970, 1, 1), x)
      return x
  
imports: from datetime import date, datetime, time, timedelta
  from pygal._compat import timestamp
  from pygal.adapters import positive
  from pygal.graph.xy import XY
label_desc: Use image node_id 4 for calling a global function with example usage: time_to_datetime(x) and returns: x, datetime