input: Write a python function to search for movies using the OMDB API.
  assert search_movie('Inception') == {'movies': [{'title': 'Inception', 'id': 'tt1375666', 'year': '2010', 'poster': 'https://example.com/inception.jpg'}]}
  assert search_movie('The Matrix') == {'movies': [{'title': 'The Matrix', 'id': 'tt0133093', 'year': '1999', 'poster': 'https://example.com/matrix.jpg'}]}
  assert search_movie('Interstellar') == {'movies': [{'title': 'Interstellar', 'id': 'tt0816692', 'year': '2014', 'poster': 'https://example.com/interstellar.jpg'}]}
output: import requests
  
  def search_movie(title):
      api_key = 'your_api_key_here'  # Replace with your actual OMDB API key
      url = f'http://www.omdbapi.com/?s={title}&apikey={api_key}'
      response = requests.get(url)
      data = response.json()
      
      if data['Response'] == 'True':
          movies = []
          for item in data['Search']:
              movie = {
                  'title': item['Title'],
                  'id': item['imdbID'],
                  'year': item['Year'],
                  'poster': item['Poster']
              }
              movies.append(movie)
          return {'movies': movies}
      else:
          return {'movies': []}