code: def find_by_name(self, item_name, items_list, name_list=None):
          
          if not name_list:
              names = [item.name for item in items_list if item]
          else:
              names = name_list
          if item_name in names:
              ind = names.index(item_name)
              return items_list[ind]
          return False
docs: Return item from items_list with name item_name.