nodes: 0, module; 1, function_definition; 2, function_name:unique; 3, parameters; 4, block; 5, identifier:seq; 6, expression_statement; 7, expression_statement; 8, for_statement; 9, return_statement; 10, comment:"""Return the unique elements of a collection even if those elements are
         unhashable and unsortable, like dicts and sets"""; 11, assignment; 12, identifier:each; 13, identifier:seq; 14, block; 15, identifier:cleaned; 16, identifier:cleaned; 17, list; 18, if_statement; 19, comparison_operator:each not in cleaned; 20, block; 21, identifier:each; 22, identifier:cleaned; 23, expression_statement; 24, call; 25, attribute; 26, argument_list; 27, identifier:cleaned; 28, identifier:append; 29, identifier:each
code: def unique(seq):
      """Return the unique elements of a collection even if those elements are
         unhashable and unsortable, like dicts and sets"""
      cleaned = []
      for each in seq:
          if each not in cleaned:
              cleaned.append(each)
      return cleaned