code: def sort_key(data, ability):
      # Alphabetical, with specifics immediately after their generals.
      name = generate_name(ability)
      if ability.remaps_to_ability_id:
          general = data.abilities[ability.remaps_to_ability_id]
          name = "%s %s" % (generate_name(general), name)
      return name
  
file_path: pysc2/pysc2/bin/gen_actions.py
imports: import itertools
  from absl import app
  from absl import flags
  from pysc2 import maps
  from pysc2 import run_configs
  from pysc2.lib import static_data
  from s2clientprotocol import common_pb2
  from s2clientprotocol import data_pb2
  from s2clientprotocol import sc2api_pb2
label_desc: Use image node_id 3 for calling a global function with example usage: sort_key(data, ability) and returns: name