code: def run_actor(actor: actor_lib.Actor, stop_signal: list[bool]):
      """Runs an actor to produce num_trajectories trajectories."""
      while not stop_signal[0]:
          frame_count, params = actor.pull_params()
          actor.unroll_and_push(frame_count, params)
  
file_path: dm-haiku/examples/impala/run_catch.py
imports: import threading
  from absl import app
  from bsuite.environments import catch
  from examples.impala import actor
  from examples.impala import agent
  from examples.impala import haiku_nets
  from examples.impala import learner
  from examples.impala import util
  import jax
  import optax
label_desc: Use image node_id 1 for calling a global function with example usage: run_actor(actor, stop_signal) without return types