input: Write a python function to query a database collection for documents where the title or description contains the words 'Python', 'Programming', or 'Web'.
  assert query_collection() == [{'title': 'Python Basics', 'description': 'Introduction to Python'}, {'title': 'Web Development', 'description': 'Learn to build websites using Python'}, {'title': 'Programming in Python', 'description': 'Advanced programming techniques'}, ...]
output: def query_collection():
      from pymongo import MongoClient
  
      client = MongoClient('mongodb://localhost:27017/')
      db = client['your_database_name']
      collection = db['your_collection_name']
  
      query = {
          "$or": [
              {"title": {"$regex": "Python|Programming|Web", "$options": "i"}},
              {"description": {"$regex": "Python|Programming|Web", "$options": "i"}}
          ]
      }
  
      result = list(collection.find(query))
      return result