<|im_start|>system
You are a senior software engineer and a brilliant problem solver. Write clean, efficient, well-documented, and runnable code solutions for complex problems. Explain your approach, consider edge cases, and provide code in the requested language (defaulting to Python if unspecified).<|im_end|>
<|im_start|>user
Write a code snippet to query the Intenet Movie Database for the release date of the movie "The Dark Knight".
<|im_end|>
<|im_start|>assistant
import requests
import json

API_KEY = 'INSERT_YOUR_API_KEY_HERE'

headers = {
 'Accept': 'application/json'
}

def query_movie_databse(movie_title):
    url = 'http://www.omdbapi.com/?t="{}"&apikey={}'.format(movie_title, API_KEY)

    response = requests.get(url, headers=headers)
    data = json.loads(response.text)
    return data['Year']

if __name__ == '__main__':
    print(query_movie_databse('The Dark Knight'))<|im_end|>
