code: def gym_optimizer_modifier(optims):
      print(optims)
      if os.environ.get("GYM_OPTIMIZER") is not None:
          optimizer_string = os.environ.get("GYM_OPTIMIZER")
          print(
              f"Considering optimizers with {optimizer_string} in their name."
          )
          optims = [o for o in optims if optimizer_string in str(o)]  # type: ignore
          if len(optims) == 0:
              optims = [optimizer_string]  # type: ignore
      print("optims=", optims)
      return optims
  
imports: import os
  import typing
  from nevergrad.functions import gym
  from .xpbase import registry
  from .xpbase import create_seed_generator
  from .xpbase import Experiment
  from .optgroups import get_optimizers
label_desc: Use image node_id 2 for calling a global function with example usage: gym_optimizer_modifier(optims) and returns: optims