def is_in_path(id, path):
    return id in [item['id'] for item in path['path']]
Determines whether id is in the path as returned from /entity/{id}/path
dataset/ETHPy150Open Sage-Bionetworks/synapsePythonClient/synapseclient/utils.py/is_in_path