code: def imagenet_synset_from_description(search_term):
      names_and_synsets = [
          (synset.name(), synset) for synset in imagenet_synsets()
      ]
      candidates = [
          synset
          for (name, synset) in names_and_synsets
          if search_term.lower().replace(" ", "_") in name
      ]
      hits = len(candidates)
      if hits == 1:
          return candidates[0]
      if hits == 0:
          message = (
              "Could not find any imagenet synset with search term {}."
          )
          raise ValueError(message.format(search_term))
      else:
          message = "Found {} imagenet synsets with search term {}: {}."
          names = [synset.name() for synset in candidates]
          raise ValueError(
              message.format(hits, search_term, ", ".join(names))
          )
  
file_path: lucid/lucid/modelzoo/wordnet.py
imports: from cachetools.func import lru_cache
  import nltk
  from nltk.corpus import wordnet
  from lucid.misc.io import load
label_desc: Use image node_id 5 for calling a global function with example usage: imagenet_synset_from_description(search_term) and returns: candidates