input: Write a function to generate an API response in Python based on the provided data. The function should take a dictionary as input and return a response dictionary with a status, message, and the original data. If the input data is empty, the function should return a response with a status of 400 and an error message.
  def generate_api_response(data):
      if not data:
          return {"status": 400, "data": {}, "message": "Data is empty"}
      return {"status": 200, "data": data, "message": "Success"}
  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': 'Data is empty'}
output: def generate_api_response(data):
      if not data:
          return {"status": 400, "data": {}, "message": "Data is empty"}
      return {"status": 200, "data": data, "message": "Success"}