class_docstr: Class for converting a gym environment, a controller style, and others into a black-box optimization benchmark.
class_docstr_tok: ["Class","for","converting","a","gym","environment",",","a","controller","style",",","and","others","into","a","black-box","optimization","benchmark","."]
code: def create_env(self) -> tp.Any:
      env = gym.make(self.short_name)
      try:
          env.reset()
      except:
          assert (
              False
          ), f"Maybe check if {self.short_name} has a problem in reset / observation."
      return env
  
imports: import os
  import copy
  import scipy.stats
  import typing
  import numpy
  import gym
  import nevergrad
  from nevergrad.parametrization import parameter
  from ..base import ExperimentFunction
label_desc: Use image node_id 3 for calling the GymMulti obj's underlying member method code with example usage: obj.create_env() and returns: env