input: Write a function to generate an API response in Python for the provided data. The function should return a dictionary with the following keys: "status", "data", and "message". The "status" should be 200, the "data" should be the provided data, and the "message" should be "Success". If no data is provided, the function should return a dictionary with "status" set to 400 and "message" set to "No data provided".
  
  assert generate_api_response({"name":"John", "age":28})=={"status": 200, "data": {"name":"John", "age":28}, "message": "Success"}
  assert generate_api_response({})=={"status": 400, "message": "No data provided"}
output: def generate_api_response(data):
      if data:
          return {"status": 200, "data": data, "message": "Success"}
      else:
          return {"status": 400, "message": "No data provided"}