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