input: Write a function to validate the presence and correctness of REST API endpoints for creating, reading all, and reading a single user implemented in a Flask application with MySQL database integration. Ensure that the function checks for HTTP method compatibility, endpoint paths, and SQL queries.
  assert validate_api_endpoints([
      ('POST', '/users', "INSERT INTO users (name, email) VALUES (%s, %s)", 200),
      ('GET', '/users', "SELECT * FROM users", 200),
      ('GET', '/users/int:id', "SELECT * FROM users WHERE id=%s", 200)
  ])==True
  assert validate_api_endpoints([
      ('POST', '/user', "INSERT INTO users (name, email) VALUES (%s, %s)", 200),
      ('GET', '/users', "SELECT * FROM users", 200),
      ('GET', '/users/int:id', "SELECT * FROM users WHERE id=%s", 200)
  ])==False
  assert validate_api_endpoints([
      ('POST', '/users', "INSERT INTO users (name, email) VALUES (%s, %s)", 405),
      ('GET', '/users', "SELECT * FROM users", 200),
      ('GET', '/users/int:id', "SELECT * FROM users WHERE id=%s", 200)
  ])==False
  assert validate_api_endpoints([
      ('POST', '/users', "INSERT INTO users (name, email) VALUES (%s, %s)", 200),
      ('GET', '/users', "SELECT * FROM users", 404),
      ('GET', '/users/int:id', "SELECT * FROM users WHERE id=%s", 200)
  ])==False
  assert validate_api_endpoints([])==True
output: def validate_api_endpoints(endpoints):
      if not endpoints:
          return True
      
      required_endpoints = {
          ('POST', '/users', "INSERT INTO users (name, email) VALUES (%s, %s)", 200),
          ('GET', '/users', "SELECT * FROM users", 200),
          ('GET', '/users/int:id', "SELECT * FROM users WHERE id=%s", 200)
      }
      
      for endpoint in endpoints:
          if endpoint not in required_endpoints:
              return False
      
      return True