def METHOD_NAME(prompt: str) -> str:
    inp = input(prompt).strip()
    if "y" in input(f"read serial '{inp}', write to gripper? (y/n): "):
        return inp
    else:
        return METHOD_NAME(prompt)