input: def store_and_query_user_data(user_data: dict) -> dict:
      """ This function stores the given user data in a JSON file and retrieves it.
      >>> user_data = {"Name": "John", "Age": 25, "City": "New York"}
      >>> store_and_query_user_data(user_data) == user_data
      True
      """
output:     import json
      with open('user_data.json', 'w') as file:
          json.dump(user_data, file)
      with open('user_data.json', 'r') as file:
          retrieved_data = json.load(file)
      return retrieved_data