<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def strip_trailing_slashes(self, path):
 """Return input path minus any trailing slashes."""

        m = re.match(r"(.*)/+$", path)
        if (m is None):
            return(path)
        return(m.group(1))