input: Write a python function to validate if a given string is a valid Python statement using the `ast` module.
  assert valid_python_statement("x = 10") == True
  assert valid_python_statement("for i in range(5): print(i)") == True
  assert valid_python_statement("def foo(): pass") == True
  assert valid_python_statement("invalid statement") == False
output: import ast
  
  def valid_python_statement(statement):
      try:
          ast.parse(statement)
          return True
      except SyntaxError:
          return False