code: def fix(at):
      """If the given object is an ``adatetime`` that is unambiguous (because
      all its attributes are specified, that is, not equal to None), returns a
      ``datetime`` version of it. Otherwise returns the ``adatetime`` object
      unchanged.
      """
  
      if is_ambiguous(at) or isinstance(at, datetime):
          return at
      return datetime(
          year=at.year,
          month=at.month,
          day=at.day,
          hour=at.hour,
          minute=at.minute,
          second=at.second,
          microsecond=at.microsecond,
      )
  
imports: import calendar
  import copy
  from datetime import date, datetime, timedelta
  from whoosh.compat import iteritems
label_desc: Use image node_id 12 for calling a global function with example usage: fix(at) and returns: datetime, at