input: Write a function to generate an API response in Python for the provided data. The function should take a dictionary as input and return another dictionary with the 'status', 'data', and 'message' fields. If the input dictionary is empty, the function should return a response with a status of 204 and a message indicating no content.
  def generate_api_response(data):
    if not data:
      return {"status": 204, "data": {}, "message": "No content"}
    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": 204, "data": {}, "message": "No content"}
output: def generate_api_response(data):
    if not data:
      return {"status": 204, "data": {}, "message": "No content"}
    return {"status": 200, "data": data, "message": "Success"}