def get_properties(entity):

    return entity.properties if hasattr(entity, 'properties') else entity
Returns the dictionary of properties of the given Entity.
dataset/ETHPy150Open Sage-Bionetworks/synapsePythonClient/synapseclient/utils.py/get_properties