input: Write a function to check if a request is malicious.
  assert check_request('GET /index.html')==False
  assert check_request('POST /login {"username": "admin", "password": "password"}')==False
  assert check_request('DELETE /important_file')==True
output: def check_request(request: str) -> bool:
      # Define malicious methods
      malicious_methods = {'DELETE', 'PUT', 'PATCH'}
  
      # Extract the method from the request
      method = request.split(' ')[0]
  
      # Check if the method is malicious
      return method in malicious_methods