# Default arguments & type hints:
def wait_and_click(locator: str, timeout: int = 10, check_visible: bool = True):
print(f"Waiting up to {timeout}s for {locator}")# Variable keyword arguments (kwargs) for flexible parameters:
def create_test_user(username: str, kwargs):
user = {"username": username, "role": kwargs.get("role", "STANDARD")}
return user