nodes: 0, module; 1, function_definition; 2, function_name:_sort_lambda; 3, parameters; 4, block; 5, default_parameter; 6, default_parameter; 7, expression_statement; 8, expression_statement; 9, if_statement; 10, return_statement; 11, identifier:sortedby; 12, string; 13, identifier:sortedby_secondary; 14, string; 15, comment:"""Return a sort lambda function for the sortedbykey"""; 16, assignment; 17, comparison_operator:sortedby == 'io_counters'; 18, block; 19, elif_clause; 20, identifier:ret; 21, string_content:cpu_percent; 22, string_content:memory_percent; 23, identifier:ret; 24, None; 25, identifier:sortedby; 26, string; 27, expression_statement; 28, comparison_operator:sortedby == 'cpu_times'; 29, block; 30, string_content:io_counters; 31, assignment; 32, identifier:sortedby; 33, string; 34, expression_statement; 35, identifier:ret; 36, identifier:_sort_io_counters; 37, string_content:cpu_times; 38, assignment; 39, identifier:ret; 40, identifier:_sort_cpu_times
code: def _sort_lambda(sortedby='cpu_percent',
                   sortedby_secondary='memory_percent'):
      """Return a sort lambda function for the sortedbykey"""
      ret = None
      if sortedby == 'io_counters':
          ret = _sort_io_counters
      elif sortedby == 'cpu_times':
          ret = _sort_cpu_times
      return ret