class_docstr: A random agent for starcraft.
class_docstr_tok: ["A","random","agent","for","starcraft","."]
code: def step(self, obs):
      super(RandomAgent, self).step(obs)
      function_id = numpy.random.choice(
          obs.observation.available_actions
      )
      args = [
          [numpy.random.randint(0, size) for size in arg.sizes]
          for arg in self.action_spec.functions[function_id].args
      ]
      return actions.FunctionCall(function_id, args)
  
imports: import numpy
  from pysc2.agents import base_agent
  from pysc2.lib import actions
label_desc: Use image node_id 1 for calling the RandomAgent obj's underlying member method code with example usage: obj.step(obs) and returns: actions