def METHOD_NAME(obj, clazz=None):
    clazz = clazz or type(obj)
    if clazz == str:
        return obj
    obj = get_entity_id(obj)
    if obj is not None:
        return "%s:%s" % (clazz.__name__, obj)