def METHOD_NAME(cls, id, nested_id=None):
    url = "%s/%s/%s" % (
        cls.class_url(),
        quote_plus(id),
        quote_plus(path),
    )
    if nested_id is not None:
        url += "/%s" % quote_plus(nested_id)
    return url