code: def basic_reset_fn(
      self,
      *,
      seed: Optional[int] = None,
      options: Optional[dict] = None,
  ) -> Union[ObsType, Tuple[ObsType, dict]]:
      """A basic reset function that will pass the environment check using random actions from the observation space."""
      super(GenericTestEnv, self).reset(seed=seed)
      self.observation_space.seed(seed)
      return self.observation_space.sample(), {"options": options}
  
file_path: gym/tests/testing_env.py
imports: import types
  from typing import Any, Dict, Optional, Tuple, Union
  import gym
  from gym import spaces
  from gym.core import ActType, ObsType
  from gym.envs.registration import EnvSpec
label_desc: Use image node_id 1 for calling a global function with example usage: basic_reset_fn() and returns: self,  dict