input: Write a python function to search for a query in the title or body of a model and return distinct results.
  assert search('test_query') == [{'title': 'Test Title 1', 'body': 'Test Body 1'}, {'title': 'Test Title 2', 'body': 'Test Body 2'}]
  assert search('nonexistent_query') == []
  assert search('') == []
output: def search(query):
      model = [
          {'title': 'Test Title 1', 'body': 'Test Body 1'},
          {'title': 'Test Title 2', 'body': 'Test Body 2'},
          {'title': 'Another Title', 'body': 'Another Body'}
      ]
      if query == '':
          return []
      results = []
      for item in model:
          if query.lower() in item['title'].lower() or query.lower() in item['body'].lower():
              if item not in results:
                  results.append(item)
      return results