def id_of(obj):
    if isinstance(obj, six.string_types):
        return str(obj)
    if isinstance(obj, Number):
        return str(obj)
    result = _get_from_members_items_or_properties(obj, 'id')
    if result is None:
        result = _get_from_members_items_or_properties(obj, 'ownerId')
    if result is None:
        raise ValueError('Invalid parameters: couldn\'t find id of ' + str(obj))
    return result
Post a HDF5 File
dataset/ETHPy150Open Sage-Bionetworks/synapsePythonClient/synapseclient/utils.py/id_of--crossover with--dataset/ETHPy150Open neurodata/ndstore/util/testRest.py/postH5