input: Write a function to store user data in a JSON file and retrieve the data from the file. The function should allow storing data and retrieving previously stored data.
  
  user_data = {"Name": "John", "Age": 25, "City": "New York"}
  
  def store_user_data(data):
      with open('user_data.json', 'w') as f:
          json.dump(data, f)
  
  def get_user_data():
      with open('user_data.json') as f:
          return json.load(f)
  
  assert store_user_data(user_data)==None
  assert get_user_data()=={"Name": "John", "Age": 25, "City": "New York"}
  assert store_user_data({"Name": "Jane", "Age": 30, "City": "Los Angeles"})==None
  assert get_user_data()=={"Name": "Jane", "Age": 30, "City": "Los Angeles"}
output: import json
  
  def store_user_data(data):
      with open('user_data.json', 'w') as f:
          json.dump(data, f)
  
  def get_user_data():
      with open('user_data.json') as f:
          return json.load(f)