code: def main(unused_argv):
      """Print the valid actions."""
      feats = features.Features(
          # Actually irrelevant whether it's feature or rgb size.
          features.AgentInterfaceFormat(
              feature_dimensions=features.Dimensions(
                  screen=FLAGS.screen_size, minimap=FLAGS.minimap_size
              )
          )
      )
      action_spec = feats.action_spec()
      flattened = 0
      count = 0
      for func in action_spec.functions:
          if (
              FLAGS.hide_specific
              and actions.FUNCTIONS[func.id].general_id != 0
          ):
              continue
          count += 1
          act_flat = 1
          for arg in func.args:
              for size in arg.sizes:
                  act_flat *= size
          flattened += act_flat
          print(func.str(True))
      print("Total base actions:", count)
      print("Total possible actions (flattened):", flattened)
  
imports: from absl import app
  from absl import flags
  from pysc2.lib import actions
  from pysc2.lib import features
  from pysc2.lib import point_flag
label_desc: Use image node_id 1 for calling a global function with example usage: main(unused_argv) without return types