code: def FireResetEnv(env):
      if isinstance(env, gym.Wrapper):
          baseenv = env.unwrapped
      else:
          baseenv = env
      if "FIRE" in baseenv.get_action_meanings():
          return _FireResetEnv(env)
      return env
  
imports: import numpy
  from collections import deque
  import gym
label_desc: Use image node_id 1 for calling a global function with example usage: FireResetEnv(env) and returns: env, _FireResetEnv