def METHOD_NAME(self, recursive):
    if isinstance(recursive, bool):
        recursive = 10 ** 9 if recursive else -1
    else:
        recursive = int(recursive)
    assert isinstance(recursive, int)
    return recursive