class_docstr: Tracked state for each active episode.
class_docstr_tok: ["Tracked","state","for","each","active","episode","."]
code: def _send(self):
      if self.multiagent:
          if not self.training_enabled:
              for agent_id in self.cur_info_dict:
                  self.cur_info_dict[agent_id][
                      "training_enabled"
                  ] = False
          item = {
              "obs": self.new_observation_dict,
              "reward": self.cur_reward_dict,
              "terminated": self.cur_terminated_dict,
              "truncated": self.cur_truncated_dict,
              "info": self.cur_info_dict,
          }
          if self.new_action_dict is not None:
              item["off_policy_action"] = self.new_action_dict
          self.new_observation_dict = None
          self.new_action_dict = None
          self.cur_reward_dict = {}
      else:
          item = {
              "obs": self.new_observation,
              "reward": self.cur_reward,
              "terminated": self.cur_terminated,
              "truncated": self.cur_truncated,
              "info": self.cur_info,
          }
          if self.new_action is not None:
              item["off_policy_action"] = self.new_action
          self.new_observation = None
          self.new_action = None
          self.cur_reward = 0.0
          if not self.training_enabled:
              item["info"]["training_enabled"] = False
  
      with self.results_avail_condition:
          self.data_queue.put_nowait(item)
          self.results_avail_condition.notify()
  
imports: import gymnasium
  import queue
  import threading
  import uuid
  from typing import Callable, Tuple, Optional, TYPE_CHECKING
  from ray.rllib.env.base_env import BaseEnv
  from ray.rllib.utils.annotations import override, PublicAPI
  from ray.rllib.utils.typing import EnvActionType, EnvInfoDict, EnvObsType, EnvType, MultiEnvDict
  from ray.rllib.utils.deprecation import deprecation_warning
label_desc: Use image node_id 6 for calling the _ExternalEnvEpisode obj's underlying member method code with example usage: obj._send() without return types