code: def random_date():
      '''Return a valid random date.'''
      d = datetime.datetime.now().date()
      d = d - datetime.timedelta(random.randint(20,2001))
      return f random_date():
      '''Return a valid random date.'''
      d = datetime.datetime.now().date()
      d = d - datetime.timedelta(random.randint(20,2001))
      return d
docs: Return a valid random date.