def _resource_id(resource, path_seg):
    return "%s-%s" % (resource, path_seg)
Construct an arbitrary resource ID so you can retrieve the mapping
dataset/ETHPy150Open matrix-org/synapse/synapse/app/homeserver.py/_resource_id