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