class_docstr: The main builder class
class_docstr_tok: ["The","main","builder","class"]
docstr: build the object trying to use all the instantiators in a row, until one works
  
  :param config: The config of the object to instantiate
  :param name: The full name of this object
  :return: The instantiated object
docstr_tok: ["build","the","object","trying","to","use","all","the","instantiators","in","a","row",",","until","one","works",":","param","config",":","The","config","of","the","object","to","instantiate",":","param","name",":","The","full","name","of","this","object",":","return",":","The","instantiated","object"]
code: def instantiate(
      self, config: Union[Dict, str, List], name: str
  ) -> Any:
      """
      build the object trying to use all the instantiators in a row, until one works
  
      :param config: The config of the object to instantiate
      :param name: The full name of this object
      :return: The instantiated object
      """
  
      for instantiator in self.instantiators:
          try:
              return instantiator.instantiate(config, name)
          except InstantiationImpossible:
              pass
  
      logger.info(
          f'instantiating "{name}" as a simple object, {config}'
      )
  
      return config
  
imports: import logging
  import os
  import traceback
  from abc import ABCMeta, abstractmethod
  from pathlib import Path
  from typing import Any, Callable, Dict, List, Mapping, Type, Union
  import toml
  import yaml
label_desc: Use image node_id 2 for calling the ObjectBuilder obj's underlying member method code with example usage: obj.instantiate(config, name) and returns: config, instantiator