input: Write a function to generate an API response in Python for the provided data. The function should accept a dictionary as input and return a new dictionary containing the status, data, and a success message. If the input data is empty, the function should return a response with a status of 400 and an error message.
  assert generate_api_response({"name": "John", "age": 28})=={"status": 200, "data": {"name": "John", "age": 28}, "message": "Success"}
  assert generate_api_response({})=={"status": 400, "data": {}, "message": "Error: Empty input data"}
output: def generate_api_response(data):
      if not data:
          return {"status": 400, "data": {}, "message": "Error: Empty input data"}
      return {"status": 200, "data": data, "message": "Success"}