Anorectal manometry is used to assess the function of the rectum and anal sphincters, helping diagnose conditions like c