nodes: 0, module; 1, function_definition; 2, function_name:uniqueify; 3, parameters; 4, type; 5, block; 6, typed_parameter; 7, typed_default_parameter; 8, identifier:List; 9, expression_statement; 10, expression_statement; 11, if_statement; 12, return_statement; 13, identifier:x; 14, type; 15, identifier:sort; 16, type; 17, False; 18, string:"Return sorted unique values of `x`."; 19, assignment; 20, identifier:sort; 21, block; 22, identifier:res; 23, identifier:Series; 24, identifier:bool; 25, identifier:res; 26, call; 27, expression_statement; 28, identifier:list; 29, argument_list; 30, call; 31, call; 32, attribute; 33, argument_list; 34, attribute; 35, argument_list; 36, identifier:res; 37, identifier:sort; 38, call; 39, identifier:keys; 40, attribute; 41, argument_list; 42, identifier:OrderedDict; 43, identifier:fromkeys; 44, identifier:x
code: def uniqueify(x:Series, sort:bool=False)->List:
      "Return sorted unique values of `x`."
      res = list(OrderedDict.fromkeys(x).keys())
      if sort: res.sort()
      return res