code: def has_wrapper(wrapped_env: gym.Env, wrapper_type: type) -> bool:
      while isinstance(wrapped_env, gym.Wrapper):
          if isinstance(wrapped_env, wrapper_type):
              return True
          wrapped_env = wrapped_env.env
      return False
  
label_desc: Use image node_id 1 for calling a global function with example usage: has_wrapper(wrapped_env, wrapper_type) and returns: False, True