def convert_to_strmap(value):
    """Convert a python dictionary to a dgl.contrainer.StrMap"""
    assert isinstance(value, dict), "Only support dict"
    if len(value) == 0:
        return _api_internal._EmptyStrMap()
    else:
        return convert_to_object(value)
Convert a python dictionary to a dgl.contrainer.StrMap
python/dgl/container.py