docstr: Collect experience.
  
  :param callback: (Optional[BaseCallback]) The callback that will be called
      at each environment step.
docstr_tok: ["Collect","experience",".",":","param","callback",":","(","Optional","[","BaseCallback","]",")","The","callback","that","will","be","called","at","each","environment","step","."]
code: def run(self, callback: Optional[BaseCallback] = None) -> Any:
      """
      Collect experience.
  
      :param callback: (Optional[BaseCallback]) The callback that will be called
          at each environment step.
      """
      self.callback = callback
      self.continue_training = True
      return self._run()
  
file_path: stable-baselines/stable_baselines/common/runners.py
imports: from abc import ABC, abstractmethod
  import typing
  from typing import Union, Optional, Any
  import gym
  import numpy
  from stable_baselines.common.callbacks import BaseCallback
  from stable_baselines.common.vec_env import VecEnv
label_desc: Use image node_id 2 for calling the AbstractEnvRunner obj's underlying member method code with example usage: obj.run(callback) and returns: self