def test_id(id_val):
    def _has_id(func):
        if not hasattr(func, "_test_id"):
            func._test_id = id_val
        return func
    return _has_id
Test function identifier
dataset/ETHPy150Open openstack/bandit/bandit/core/test_properties.py/test_id