nodes: 0, module; 1, function_definition; 2, function_name:radius_cmp; 3, parameters; 4, block; 5, identifier:a; 6, identifier:b; 7, identifier:offsets; 8, expression_statement; 9, expression_statement; 10, if_statement; 11, if_statement; 12, return_statement; 13, string; 14, assignment; 15, comparison_operator:diff > 0; 16, block; 17, comparison_operator:diff < 0; 18, block; 19, integer:0; 20, string_content:return +1 or -1 for for sorting; 21, identifier:diff; 22, binary_operator:radius(a, offsets) - radius(b, offsets); 23, identifier:diff; 24, integer:0; 25, return_statement; 26, identifier:diff; 27, integer:0; 28, return_statement; 29, call; 30, call; 31, integer:1; 32, unary_operator; 33, identifier:radius; 34, argument_list; 35, identifier:radius; 36, argument_list; 37, integer:1; 38, identifier:a; 39, identifier:offsets; 40, identifier:b; 41, identifier:offsets
code: def radius_cmp(a, b, offsets):
      '''return +1 or -1 for for sorting'''
      diff = radius(a, offsets) - radius(b, offsets)
      if diff > 0:
          return 1
      if diff < 0:
          return -1
      return 0