code: def get_from_name(self, name):
          
          with self.condition:
              try:
                  item_id = self.name2id[name]
              except KeyError:
                  return None
              return self.id2item[item_id]
          return None
docs: Returns the item with the given name, or None if no such item
          is known.