code: def for_name(self, name):
      try:
          name_resources = self._resources[name]
      except KeyError as e:
          raise LookupError(name) from e
      else:
          for res in name_resources:
              try:
                  inst = res.inst()
              except Exception as e:
                  if log.getEffectiveLevel() <= logging.DEBUG:
                      log.exception("error initializing %s", res)
                  else:
                      log.error("error initializing %s: %s", res, e)
              else:
                  yield inst
  
file_path: guildai/guild/entry_point_util.py
imports: import logging
  import sys
  import pkg_resources
label_desc: Use image node_id 8 for calling the EntryPointResources obj's underlying member method code with example usage: obj.for_name(name) without return types