code: def raw_ability_ids(obs):
      return list(
          filter(
              None,
              (
                  a.action_raw.unit_command.ability_id
                  for a in obs.actions
              ),
          )
      )
  
file_path: pysc2/pysc2/tests/actions_test.py
imports: from absl.testing import absltest
  from pysc2.lib import actions
  from pysc2.lib import units
  from pysc2.tests import utils
label_desc: Use image node_id 1 for calling a global function with example usage: raw_ability_ids(obs) and returns: list