code: def test_customizable_pendulum_resets(low_high: Optional[list]):
      env = gym.make("Pendulum-v1")
      env.action_space.seed(0)
      # First ensure we can do a reset and the values are within expected ranges.
      if low_high is None:
          env.reset()
      else:
          low, high = low_high
          # Pendulum is initialized a little differently than the other
          # environments, where we specify the x and y values for the upper
          # limit (and lower limit is just the negative of it).
          env.reset(options={"x_init": low, "y_init": high})
      # Make sure we can take a step.
      env.step(env.action_space.sample())
  
file_path: gym/tests/envs/test_env_implementation.py
imports: from typing import Optional
  import numpy
  import pytest
  import gym
  from gym.envs.box2d import BipedalWalker
  from gym.envs.box2d.lunar_lander import demo_heuristic_lander
  from gym.envs.toy_text import TaxiEnv
  from gym.envs.toy_text.frozen_lake import generate_random_map
label_desc: Use image node_id 8 for calling a global function with example usage: test_customizable_pendulum_resets(low_high) without return types