code: def duration(
      days=0,  # type: float
      seconds=0,  # type: float
      microseconds=0,  # type: float
      milliseconds=0,  # type: float
      minutes=0,  # type: float
      hours=0,  # type: float
      weeks=0,  # type: float
      years=0,  # type: float
      months=0,  # type: float
  ):  # type: (...) -> Duration
      
      return Duration(
          days=days,
          seconds=seconds,
          microseconds=microseconds,
          milliseconds=milliseconds,
          minutes=minutes,
          hours=hours,
          weeks=weeks,
          years=years,
          months=months,
      )
docs: Create a Duration instance.