input: Write a function to generate an API response in Python for the provided data. The function should take a dictionary as input, which contains information about a person, and return a dictionary with a status code, the input data, and a success message. If the input data is empty, the function should return a 400 status code with 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: Invalid input"}
  assert generate_api_response({"name": "Jane", "age": 30, "email": "jane@example.com"}) == {"status": 200, "data": {"name": "Jane", "age": 30, "email": "jane@example.com"}, "message": "Success"}
output: def generate_api_response(data):
      if not data:
          return {"status": 400, "data": {}, "message": "Error: Invalid input"}
      return {"status": 200, "data": data, "message": "Success"}