input: Write a function to store and query user data in a JSON file. The function should be able to store given user data into a JSON file and also retrieve the data from the file when needed. 
  
  assert store_user_data({'Name': 'John', 'Age': 25, 'City': 'New York'})==None
  stored_data = get_user_data()
  assert stored_data=={'Name': 'John', 'Age': 25, 'City': 'New York'}
output: def store_user_data(user_data):
      with open('user_data.json', 'w') as file:
          json.dump(user_data, file)
  
  def get_user_data():
      with open('user_data.json', 'r') as file:
          return json.load(file)