nodes: 0, module; 1, function_definition; 2, function_name:get_creation_date_tags; 3, parameters; 4, block; 5, identifier:url; 6, identifier:domain; 7, default_parameter; 8, expression_statement; 9, expression_statement; 10, expression_statement; 11, if_statement; 12, return_statement; 13, identifier:as_dicts; 14, False; 15, comment:"""
      Put together all data sources in this module and return it's output.
  
      Args:
          url (str): URL of the web. With relative paths and so on.
          domain (str): Just the domain of the web.
          as_dicts (bool, default False): Convert output to dictionaries
              compatible with :class:`.SourceString`?
  
      Returns:
          list: Sorted list of :class:`TimeResource` objects or dicts.
      """; 16, assignment; 17, assignment; 18, not_operator; 19, block; 20, list_comprehension; 21, identifier:creation_date_tags; 22, list; 23, identifier:creation_date_tags; 24, call; 25, identifier:as_dicts; 26, return_statement; 27, call; 28, for_in_clause; 29, call; 30, call; 31, identifier:sorted; 32, argument_list; 33, identifier:creation_date_tags; 34, attribute; 35, argument_list; 36, identifier:item; 37, identifier:creation_date_tags; 38, identifier:mementoweb_api_tags; 39, argument_list; 40, identifier:get_whois_tags; 41, argument_list; 42, call; 43, keyword_argument; 44, identifier:item; 45, identifier:_as_dict; 46, identifier:url; 47, identifier:domain; 48, identifier:sum; 49, argument_list; 50, identifier:key; 51, lambda; 52, identifier:creation_date_tags; 53, list; 54, lambda_parameters; 55, attribute; 56, identifier:x; 57, identifier:x; 58, identifier:date
code: def get_creation_date_tags(url, domain, as_dicts=False):
      """
      Put together all data sources in this module and return it's output.
  
      Args:
          url (str): URL of the web. With relative paths and so on.
          domain (str): Just the domain of the web.
          as_dicts (bool, default False): Convert output to dictionaries
              compatible with :class:`.SourceString`?
  
      Returns:
          list: Sorted list of :class:`TimeResource` objects or dicts.
      """
      creation_date_tags = [
          mementoweb_api_tags(url),
          get_whois_tags(domain),
      ]
  
      creation_date_tags = sorted(
          sum(creation_date_tags, []),
          key=lambda x: x.date
      )
  
      if not as_dicts:
          return creation_date_tags
  
      return [
          item._as_dict()
          for item in creation_date_tags
      ]