class_docstr: Internal adapter of VectorEnv to BaseEnv.
  
  We assume the caller will always send the full vector of actions in each
  call to send_actions(), and that they call reset_at() on all completed
  environments before calling send_actions().
class_docstr_tok: ["Internal","adapter","of","VectorEnv","to","BaseEnv",".","We","assume","the","caller","will","always","send","the","full","vector","of","actions","in","each","call","to","send_actions","(",")",",","and","that","they","call","reset_at","(",")","on","all","completed","environments","before","calling","send_actions","(",")","."]
code: def try_reset(
      self,
      env_id: Optional[EnvID] = None,
      *,
      seed: Optional[int] = None,
      options: Optional[dict] = None,
  ) -> Tuple[MultiEnvDict, MultiEnvDict]:
      from ray.rllib.env.base_env import _DUMMY_AGENT_ID
  
      if env_id is None:
          env_id = 0
      assert isinstance(env_id, int)
      obs, infos = self.vector_env.reset_at(
          env_id, seed=seed, options=options
      )
  
      # If exceptions were returned, return MultiEnvDict mapping env indices to
      # these exceptions (for obs and infos).
      if isinstance(obs, Exception):
          return {env_id: obs}, {env_id: infos}
      # Otherwise, return a MultiEnvDict (with single agent ID) and the actual
      # obs and info dicts.
      else:
          return {env_id: {_DUMMY_AGENT_ID: obs}}, {
              env_id: {_DUMMY_AGENT_ID: infos}
          }
  
imports: import logging
  import gymnasium
  import numpy
  from typing import Callable, List, Optional, Tuple, Union, Set
  from ray.rllib.env.base_env import BaseEnv, _DUMMY_AGENT_ID
  from ray.rllib.utils.annotations import Deprecated, override, PublicAPI
  from ray.rllib.utils.typing import EnvActionType, EnvID, EnvInfoDict, EnvObsType, EnvType, MultiEnvDict, AgentID
  from ray.util import log_once
label_desc: Use image node_id 4 for calling the VectorEnvWrapper obj's underlying member method code with example usage: obj.try_reset(env_id) and returns: dict,  dict, dict,  dict