def METHOD_NAME(self, path: str):
    """Gets the item path relative to the given path.
    The item must be under the path; otherwise TimDbException is thrown.
    """
    path = path.strip("/")
    if not self.path.startswith(path + "/"):
        raise TimDbException("Cannot get relative path")
    return self.path.replace(path + "/", "", 1)