code: def getall_by(self, prop, val):
          '''Retrieves all items from the dictionary with the given metadata'''
          try:
              val = self.serialize(val)
              return self._meta[prop][val][:]  # return a copy of the list
          except KeyError:
              return [f getall_by(self, prop, val):
          '''Retrieves all items from the dictionary with the given metadata'''
          try:
              val = self.serialize(val)
              return self._meta[prop][val][:]  # return a copy of the list
          except KeyError:
              return []
docs: Retrieves all items from the dictionary with the given metadata