class_docstr: Convert functional callback (old-style) to object.
  
  :param callback: (Callable)
  :param verbose: (int)
class_docstr_tok: ["Convert","functional","callback","(","old-style",")","to","object",".",":","param","callback",":","(","Callable",")",":","param","verbose",":","(","int",")"]
code: def _on_step(self) -> bool:
      if self.callback is not None:
          return self.callback(self.locals, self.globals)
      return True
  
imports: import os
  from abc import ABC
  import warnings
  import typing
  from typing import Union, List, Dict, Any, Optional
  import gym
  import numpy
  from stable_baselines.common.vec_env import VecEnv, sync_envs_normalization, DummyVecEnv
  from stable_baselines.common.evaluation import evaluate_policy
  from stable_baselines import logger
label_desc: Use image node_id 2 for calling the ConvertCallback obj's underlying member method code with example usage: obj._on_step() and returns: True, self