def test_mapping(value):
    return isinstance(value, mapping_types)
Return true if the object is a mapping (dict etc.).
dataset/ETHPy150Open GeekTrainer/Flask/Work/Trivia - Module 5/env/Lib/site-packages/jinja2/tests.py/test_mapping