code: def filter_callback_requests(
      requests: List[Request],
  ) -> List[Request]:
      valid_requests = []
      for r in requests:
          if r.method.upper() != "POST":
              # note; the `_reload_hash` GET request will thus be filtered out
              continue
  
          if not r.url.endswith("_dash-update-component"):
              continue
  
          valid_requests.append(r)
      return valid_requests
  
imports: from __future__ import annotations
  import json
  import time
  from typing import List, Union
  from selenium.webdriver.common.action_chains import ActionChains
  from selenium.webdriver.common.by import By
  from selenium.webdriver.support import expected_conditions
  from selenium.webdriver.support.ui import WebDriverWait
  from seleniumwire import webdriver
  from seleniumwire.request import Request
  from .utils import not_on_linux
label_desc: Use image node_id 1 for calling the RequestParser obj's underlying member method code with example usage: obj.filter_callback_requests(requests) and returns: valid_requests