code: def _set_env(self, env):
          
          for callback in self.callbacks:
              if callable(getattr(callback, '_set_env', None)):
                  callback._set_env(env)
docs: Set environment for each callback in callbackList