def METHOD_NAME(items, force_inv=False):
    must_fail_items.clear()
    for item in items:
        marker = item.get_closest_marker("must_fail")
        if marker:
            must_fail_items[item.nodeid] = None
    community_unsupported.clear()
    for item in items:
        marker = item.get_closest_marker("community_unsupported")
        if marker:
            community_unsupported[item.nodeid] = None
    if force_inv or env.match("SPYTEST_TCMAP_MARKERS", "1", "1"):
        for item in items:
            read_inventory_marker(item)