input: Write a function to generate an api response in Python for the provided data. The function should return a dictionary with the status code, the original data, and a success message. If the input data is empty, it should return a dictionary with a status code of 400, a null data field, and an error message.
  def generate_api_response(data):
      if data:
          return {
              "status": 200,
              "data": data,
              "message": "Success"
          }
      else:
          return {
              "status": 400,
              "data": None,
              "message": "Error: Empty input data"
          }
  
  assert generate_api_response({"name": "John", "age": 28})=={"status": 200, "data": {"name": "John", "age": 28}, "message": "Success"}
  assert generate_api_response({})=={"status": 400, "data": None, "message": "Error: Empty input data"}
output: def generate_api_response(data):
      if data:
          return {
              "status": 200,
              "data": data,
              "message": "Success"
          }
      else:
          return {
              "status": 400,
              "data": None,
              "message": "Error: Empty input data"
          }