nodes: 0, module; 1, function_definition; 2, function_name:get_klass_parents; 3, parameters; 4, block; 5, identifier:gi_name; 6, expression_statement; 7, expression_statement; 8, expression_statement; 9, if_statement; 10, expression_statement; 11, return_statement; 12, string; 13, assignment; 14, assignment; 15, not_operator; 16, block; 17, call; 18, identifier:res; 19, string_content:Returns a sorted list of qualified symbols representing
      the parents of the klass-like symbol named gi_name; 20, identifier:res; 21, list; 22, identifier:parents; 23, call; 24, identifier:parents; 25, return_statement; 26, identifier:__get_parent_link_recurse; 27, argument_list; 28, attribute; 29, argument_list; 30, list; 31, subscript; 32, identifier:res; 33, identifier:__HIERARCHY_GRAPH; 34, identifier:predecessors; 35, identifier:gi_name; 36, identifier:parents; 37, integer:0
code: def get_klass_parents(gi_name):
      '''
      Returns a sorted list of qualified symbols representing
      the parents of the klass-like symbol named gi_name
      '''
      res = []
      parents = __HIERARCHY_GRAPH.predecessors(gi_name)
      if not parents:
          return []
      __get_parent_link_recurse(parents[0], res)
      return res