def getid(obj):
    try:
        return obj.id
    except AttributeError:
        return obj
bfs
dataset/ETHPy150Open openstack/python-cloudkittyclient/cloudkittyclient/common/base.py/getid--crossover with--dataset/ETHPy150Open algorhythms/LeetCode/279 Perfect Squares.py/Solution.numSquares_bfs