input: def store_and_get_user_data(user_data: dict) -> dict:
      """
      This function stores the given user data in a JSON file and retrieves it.
      It returns the stored user data as a dictionary.
  
      >>> store_and_get_user_data({"Name": "John", "Age": 25, "City": "New York"})
      {'Name': 'John', 'Age': 25, 'City': 'New York'}
      
      >>> store_and_get_user_data({"Name": "Jane", "Age": 30, "City": "Los Angeles"})
      {'Name': 'Jane', 'Age': 30, 'City': 'Los Angeles'}
      """
output:     import json
      import os
  
      filename = "user_data.json"
  
      with open(filename, 'w') as file:
          json.dump(user_data, file)
  
      if os.path.exists(filename):
          with open(filename, 'r') as file:
              stored_data = json.load(file)
          return stored_data