code: def fill_in(at, basedate, units=adatetime.units):
      """Returns a copy of ``at`` with any unspecified (None) units filled in
      with values from ``basedate``.
      """
  
      if isinstance(at, datetime):
          return at
  
      args = {}
      for unit in units:
          v = getattr(at, unit)
          if v is None:
              v = getattr(basedate, unit)
          args[unit] = v
      return fix(adatetime(**args))
  
imports: import calendar
  import copy
  from datetime import date, datetime, timedelta
  from whoosh.compat import iteritems
label_desc: Use image node_id 7 for calling a global function with example usage: fill_in(at, basedate, units) and returns: fix, at