input: def store_and_query_user_data(user_data: dict) -> None:
      """ Store the given user data in a JSON file and provide a function to retrieve it.
      >>> user_data = {"Name": "John", "Age": 25, "City": "New York"}
      >>> store_and_query_user_data(user_data)
      {'Name': 'John', 'Age': 25, 'City': 'New York'}
      """
output:     import json
      with open('user_data.json', 'w') as file:
          json.dump(user_data, file)
  
      def retrieve_user_data():
          with open('user_data.json', 'r') as file:
              return json.load(file)
  
      print(retrieve_user_data())