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 a dictionary containing the status, data, and message. If the input data is not provided, the function should return a response with a status of 400 and an appropriate error message.
  
  def generate_api_response(data=None):
      if data is None:
          return {"status": 400, "data": None, "message": "No data provided"}
      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": None, "message": "No data provided"}
output: def generate_api_response(data=None):
      if data is None:
          return {"status": 400, "data": None, "message": "No data provided"}
      return {"status": 200, "data": data, "message": "Success"}